So I’m making a prototype of a game, and I have a problem.
You see, I made a title screen where you click a to start the game (Using functions) So when you click (A) you get placed on the titlemap, yadayada.
But still while in the game, when you press A it sadly, well, does what it’s supposed to
So how do I make it when you press a to start it only works then and disables? I have done this before, I’m just having one of those moments where you blank and just have no idea what to do
Any-whoo Could someone help?
3 Likes
Get timers extension and settings extension then make a setting called Start of game then let A = True then Null once Start of game isn’t called.
Hope that helps.
1 Like
you can use boolean variables!
- Put code in “on start” into a function (StartGameFunction)
- Make a boolean variable (Pause) and set it to true (put in on start)
- Make sure everything is set to “if not pause” (game updates, button inputs, forever loops…)
- On A pressed (or whatever input you want) make the variable false and run “on start function”
3 Likes
Thanks! I used these and they’re great!
2 Likes