In my game, when the RMB is pressed, shows a menu that the player can choose any options…My question is:
In the method render(), call the method draw() for each child of rootNode or call the atachChild() when I press the RMB and after detachChild()?
Thx a lot!!!
you could just toggle the cull state of your menu between SceneElement.CULL_ALWAYS and SceneElement.CULL_NEVER. then you won't have to attach or detach any children.
Thank you sfera!!!
i'm glad i could help
you could also extend GameState and use setActive() :), I dont know which is "better" but this is the way I do it.