Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Two thing I'm stuck on (Events)

1. I've been trying to figure out how to add functions to pictures in a menu created by a common event, but have had no success. Can anyone explain how I could go about doing?


2. I want to make it so that you can press a button to leave that same menu. I figured a conditional branch saying if the button is pressed to go through the exit process would work, but I can't figure out how to have it continuously checking it so that you can always exit without pressing the button when its not checking it.
 
I don't know about the second one but for the first one, I'll have to know exactly what you're trying to do. Do you mean you want the left arrow key is pressed and then it moves to an option to the left and such?
 
Hmm...One thing I can think of is, every time this so-called menu appears, have the player transfer to a blank map and no graphic. You should give the illusion that the player is selecting things, but really he's just moving the player into a bunch of player touch events where they show different pictures and have a conditional branch for when the player presses the action button. Let me know if you need me to put up some screenshots.

EDIT: How many options are in your menu? I just made a working menu with two selectable options if you would like it.
 
The second one you need the loop and break loop event commands.

Loop
-- conditional branch (key press whatever)
-- -- do your stuff
-- -- break loop
-- else
-- -- dont do your stuff
-- end
End
 
MCsephiroth13":24j8jrre said:
Hmm...One thing I can think of is, every time this so-called menu appears, have the player transfer to a blank map and no graphic. You should give the illusion that the player is selecting things, but really he's just moving the player into a bunch of player touch events where they show different pictures and have a conditional branch for when the player presses the action button. Let me know if you need me to put up some screenshots.

EDIT: How many options are in your menu? I just made a working menu with two selectable options if you would like it.
I like that idea, it should have like 6 or 7 options. And screenshots would be helpful.

And my question now is how would you go back to the spot you were before?


Commodore Whynot":24j8jrre said:
The second one you need the loop and break loop event commands.

Loop
-- conditional branch (key press whatever)
-- -- do your stuff
-- -- break loop
-- else
-- -- dont do your stuff
-- end
End

Thank you, I will try that.
 
So, in other words, you go to one map, then return to wherever it was that you were?

Sure thing. It's pretty simple.

Change the Menu Access common event so that it:: 1) Assigns your present Map X, Map Y, and Map Number to three different variables.

2) Transfers you to the Menu Map. (The order is important, of course.)

Now, when you go to the "Exit" event in the Menu Map, have it Transfer the player to the coordinates of the variables. (Transfer Player can do this.)

Simple, and a useful trick.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top