Can I create an overlay menu for my main game screen without pausing?
Hey!
I am working on an RTS, which is going quite well, but I am at the stage where I would like to create a menu to create actors in game. I figure I could create a set of actors in lieu of a menu that can be destroyed once the player decides what to create (or cancel), but I would think making a scene that can overlay in a corner would be more efficient. Any thoughts?
Thanks!
Charlie
I am working on an RTS, which is going quite well, but I am at the stage where I would like to create a menu to create actors in game. I figure I could create a set of actors in lieu of a menu that can be destroyed once the player decides what to create (or cancel), but I would think making a scene that can overlay in a corner would be more efficient. Any thoughts?
Thanks!
Charlie
Best Answers
-
xforce Posts: 187
i have a few of these in one of my games so yes its possible. you can either do a full destroy when its not needed or just change its alpha to 0 and make sure theres an attribute that disables all the "links" that are connected to it -
xforce Posts: 187
i wouldnt call it a "scene" overlay. just an overlay. the way ive done it is you basically just setup all your actors how you want and just have them all activate and appear when the correct attribute is set to True state.
so lets say you have a weapon menu. just make it that in all your actors that are tied to that menu that they will only work when game.weaponmenu = true for example.
so if its true they all appear and are all clickable and if its false they're either invisible or destroyed. and if they are only invisible make sure that their rules are disabled so you're not still accidentally activating them while you can't see them -
simo103 Posts: 1,331
@cluv you could also have the menu move in and out of the scene when needed which gives a cool look to the effect. I have a simple demo on the right side of this page: http://www.funkymunkygames.com/GameSalad/search/
Titled: Pop-up Menu/drag and drop project. Note: the key with having numerous actors move in and out on a menu is to turn off moveable in physics (saves engine resources) and use interpolate to move them. Ease in and Out gives them a smooth motion.
Answers
Thanks for the quick response. So I can just overlay another scene and make it transparent when I am not using it. I like that. Nice.
Now the noob question. Is there a particular function to set an overlay scene?
Thanks!
C