1 decade ago by PotHi
Hey guys!
I've created a hud for my game. I'm spawning it on the game init and it should stay alive after the level changing. The problem is that when I loadLevel() the hud "disappear", it is still reachable (I can find it on the ig.game using the browser console) but it is not drawn anymore.
I tried to add a zIndex to the hud and sort all entities without success...zIndex didn't worked the way I expected btw. =/
Any ideas?
I've created a hud for my game. I'm spawning it on the game init and it should stay alive after the level changing. The problem is that when I loadLevel() the hud "disappear", it is still reachable (I can find it on the ig.game using the browser console) but it is not drawn anymore.
I tried to add a zIndex to the hud and sort all entities without success...zIndex didn't worked the way I expected btw. =/
Any ideas?