How do i make a persistent HUD for every level?
Hey guys,
So currently i have to clone the HUD on every level, which means if i update it in once place, i'll have to update it everywhere. Is there a way to just have one version of the HUD?
So currently i have to clone the HUD on every level, which means if i update it in once place, i'll have to update it everywhere. Is there a way to just have one version of the HUD?
Comments
I'd like to be able to change the HUD without having to go and edit every instance of it in every level i created.
Thanks!
1. Design one or two levels only first and get them working completely/perfect before duplicating over and over into more levels (good advice but I've failed at this a few times
2. Could your game be designed with just one scene? Many GS games have numerous levels but they are all in one scene and use the same HUD and move the camera (recycling actors along the way to keep memory use under control)
3. You could set a bunch of Game.attributes for the x and y position of your hUD actors and even put a few extra ones in if you're not sure what you might have by the end. Then each Hud actor you drop in you could have a change attribute to position it at the right x and y attribute. That would at least allow you to control where they appear from one set of attributes.
Don't know if that helps any?
I have been messing around with a game, where I spawn the hud actors into place at the start of every level, which worked really well for what I was doing.
Option number 3 is interesting, i will probably have to attempt that route! Thanks. Yeap it would be nice to group and spawn instances you've created, such as the HUD...
Thanks guys!