How to make a specific actor stick to the screen movement?
williamt2706
Member, PRO Posts: 85
I'm on my way making my first game.
I'm making sidescrolling game, and i got my "main" actor a camera control and of course the camera will move wherever this actor go. But how do i make the health bar or item button stick to the screen wherever the main actor move? because they always get left behind . . . thx for your concern
sorry my bad english . .
I'm making sidescrolling game, and i got my "main" actor a camera control and of course the camera will move wherever this actor go. But how do i make the health bar or item button stick to the screen wherever the main actor move? because they always get left behind . . . thx for your concern
sorry my bad english . .
Best Answer
-
MotherHoose Posts: 2,456use a new layer for items that do not scroll … that always show in the scene
Inspector > Scene > Layers [+] … to add newLayer
click once on that newLayer … uncheck Scrollable … tap the enterKey … type in HUD
drag that layer above the Background one
drag your health/item into that layer
HUD is Heads Up Display: http://en.wikipedia.org/wiki/HUD_(video_gaming)
watch: Weswog HUD how-to video
MH
Answers
I've download lots of your tutorial on youtube, but i still haven't get this one . . many thx
I can't drag it to sidescrolling layer, since the layer didn't appear on scene layer. Except i drag it into the screen, but it wouldn't becoma a "spawn" actor anymore if i drop it to the scene . . .