HUD help?
sewinston
Member Posts: 51
I have a moving camera over a background that is 1000x720. I created a HUD, put it on its own layer and turned off scrollable, but it remains fixed to the background rather then moving with the camera. What am I doing wrong?
Comments
A couple of questions for you.
1. Is the background in a scrollable layer?
2. Which actor has the Control Camera behavior? Is your control camera behavior on a different actor(i.e. not the hud and not the background).
The camera control was on the player actor.
I never fixed that problem so I'd be interested in any solutions.
Ta!
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Hope that clears up questions about creating HUDs.
Hope that explains everything.
There's a few things I'm not clear about though in my mind. I'm going to use some easy maths to try and get a handle on this.
Say my scene is 4800 x 320; essentially very long along the X axis, 10 screens wide!
If the starting position of my player actor is in the middle of these 10 screens, say screen 4, then this is where the game will start.
Where do I put the score, for example, in a non-scrollable layer? Is it in the top left corner of the start screen (screen 4 of 10) or is it elsewhere?
Do you have a screenshot of the rules that would govern this perchance?
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I'll give it a try when I get home!
cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Added a couple of images to the how to that may help.
JGary,
You put the scores in a non-scrollable layer and in the camera view as if it started at the bottom left of the scene.
Those pics really do help, Codemonkey. We're visual thinkers, remember?
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Thanks for the tip Code
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Regardless of where your camera is, or how big your Scene is, your HUD elements need to be in the lower left corner of the Scene, in a new layer that is unscrollable.