0 Favourites

Help with a pause menu

  • Excuse my bad English, use google translator to write this, because my English is not good (I can read English perfectly, but not write it).

    Hello, my name is Sebastian, I am a college student, I'm currently creating an educational game as a university project.

    My game has a pause menu, several submenus, items and selectable buttons (similar to the Zelda series).

    http://postimg.org/image/r6dbwjgst/

    Menu structure:

    Pause Menu (tiems)

    Exit Menu

    Trophy Menu

    View Tropy

    Each of these menus is in a different layer, these layers are invisible, and only become visible if the "esc" key is pressed (Pause Menu) or the predetermined button is pressed (the other menus).

    The problem is this:

    When these menus are invisible, still work, if the user clicks on the place where they should be one of the buttons, may accidentally select items, open other menus or even close the game.

    To prevent this from happening, use the "Set layer Scale to 0" action when they were invisible and " Set layer Scale to 1.0" when they were visible.

    At first (when I tried it with only 2 of the 4 menus) it worked without problems.

    http://postimg.org/image/7yq6zxyh9/

    But when finished adding the remaining menus, the game disappeared and there was only a blue screen.

    http://postimg.org/image/vmzuu27rr/

    This problem only occurs when I add the "Set layer Scale to 0" action to the other two submenus.

    Apparently the program does not support 4 layers that have the same action (Set Layer scale) enabled at the same time.

    I'm desperate, I do not know how to make the layers and invisible elements do not interfere with the game.

    Please help if anyone knows how to block invisible layers, it would greatly appreciate it.

  • you can do:

    if layer invisible + player clic on object "menu" > toggle disabled

    if layer visible + player clic on object "menu" > toggle enabled

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • it worked!!!

    You do not know how long I've been trying to fix this.

    Thank you very much

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
80 46,956
playtingz's avatar
playtingz
Unread hot topic
157 12,692
megatronx's avatar
megatronx
Unread hot topic
0 Favourites
Kiira will help! :D
132 16,613
Kiira's avatar
Kiira