In my game, I have a scoreboard which is built up by a series of Quads attached to a Node.

I want it to only show when holding down a specified button. How do I make it to not draw when not holding down the key? Is there some setVisible(boolean) function lurking somewhere?




would do what you want. Orrrr, the better way is to detach it from the Node on which it resides, and reattach it, call updateRenderState() and your done.

Either way is fine, but I prefer the second.


Thanks, I thought I had tried attaching/detatching but probably forgot updateRenderState()…

Anyway, problem solved, thanks :slight_smile: