How to make pop up menus?

NeoCHI

  • Posts: 524
What's the best way to make a pop up menu? Basically, I want a menu that only covers part of my current scene.

Also, I'm using two joysticks so I need those to be disabled once the menu pops up.

I remember seeing a guide about this somewhere but I can't find it anymore!

mebloo

  • Posts: 128
I think every solution turns around the menu being an Actor and using a Boolean Attribute to know if the menu is active / shown or inactive / hidden. That Boolean would be used for enabling / disabling controls as well.

It would be more logical to me if menus could be scenes, using specific transitions to display above another scene. But it seems it's not possible ?

Rimrook

  • Posts: 251
First look into pausing. There's a great tutorial on it on the site. http://www.stencyl.com/help/view/pausing/

After that, go into the actors for your menu elements and click the physics tabs. Then in advanced, under "can be paused" click "no" for them. When your game is paused, these actors will still function.

I recommend setting a boolean for when the game is paused or unpaused in your button press script. There is also the "game is paused" boolean block you can use. I also recommend creating all of the actors for your menu elements when the button is pressed THEN pause the game. In the paused state, it also pauses behaviors and you can run into problems there. When the game is unpaused, kill all of your menu elements. Its better to create and destroy the menu instead of having it hide since a menu can have a lot of stuff and performance can take a hit.

Hope that helps.
Good Luck!

CmdrWhitey13

  • Posts: 503
I have implemented my Popup Manager here in this behavior.
It allows for you to have your own image for the popup and provides an overlay to the rest of the screen.
may help you for this matter.

http://community.stencyl.com/index.php?action=dlattach;topic=45738.0;attach=47689

Dreamling

  • Posts: 17
I have implemented my Popup Manager here in this behavior.
It allows for you to have your own image for the popup and provides an overlay to the rest of the screen.
may help you for this matter.

http://community.stencyl.com/index.php?action=dlattach;topic=45738.0;attach=47689


This downloads a png image file of a stencyl icon. Could you perhaps show in a different way? I'd love to see what you have!

mdotedot

  • Posts: 1569
Hello Dreamling,

The file that was linked is a Resource

* Go To File -> Import Resource -> Select the file that was uploaded
* Attach to Scene
* Run Game
* Press Z (Action 1)
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.

CmdrWhitey13

  • Posts: 503
Thanks M.E. for the clarification. Figured it would be easier for that. I guess I should have linked to the post specific.

cvaughn55

  • Posts: 17
I tried using that popup manager but nothing showed up on my screen when i atached it to a scene and pressed the action button

CmdrWhitey13

  • Posts: 503
I tried using that popup manager but nothing showed up on my screen when i atached it to a scene and pressed the action button

It allows for a custom popup to be at the location you specify. The popupX ,popupY, popupWidth, popupHeight is the location and size of your popup.
What would you like for this functionally? I will be glad to implement it.

EDIT: This was the original post it was designed for.

http://community.stencyl.com/index.php/topic,45738.0.html