How do I make a menu with selection?

0 favourites
  • 7 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • Hi all! I'm trying to create a pause menu where players could swicth between continue, options and exit. I'm using a variable Esc_Menu_Selection (1-continue, 2-options, 3-exit). However when I move down with my arrow it skips Options for some reason (see the screenshots).

    Please help me figure out what is wrong there or maybe there is an easier way for such menus?

    Thanks

  • It is because the events are true as you run the events from top to bottom like Construct does. It becomes 2 which makes the event for if=2 true and then changes it to 3. Using the on down key pressed condition make it one event only, indent with sub event (S) and use Else, so if variable = 2 Else if variable = 3. That should fix it.

  • Sorry still a bit new here. Visually it works now, however when I go from top to bottom it thinks that Options (var=2) is Exit(var=3). I know it's probably the same reason you mentioned, so maybe I misunderstood you. Appreciate any help.

  • Does that relate to some other events you're not showing us? Not sure what you mean by that. It 'thinks' that option 2 is option 3 sounds like you are pressing a key or choosing an option which isn't shown here.

  • Sorry the project is a bit bulky! Please see all related to this escape menu below. It basically makes some objects visible and then you can switch between options with an arrow. Hope that helps.

  • You still have the down key button press separate at the top so the same bug will happen. It sets it to 2 and then the event below runs where it says menu select = 2. You should have them all in one event as I previously mentioned.

    Also on the enter key press events you don't need those extra conditions for variable is not equal to something, that won't be causing any bugs though they are just redundant.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you, I think I finally got it right. Phew

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)