Mashing the button 10 or more times to make the door open

im making a horror game and i want to make something like i have to interact the door like 10 or more times before the door can open... So how do i do that 🙂 ?

Sorry im kinda bit beginner on this. and still kinda learning ^^;



p.s Sorry for my bad english though ^^;
You could do this using variables, each time the player interacts with the door you add 1 to the variable. When the variable reaches 10 the door opens.
You could do this using variables, each time the player interacts with the door you add 1 to the variable. When the variable reaches 10 the door opens.

Ahh sorry buut Im kinda Confused on using Variables sooo
how do i exactly use the variables again ^^; Sorry ><
Control Variables is the command to use, to set values on variables. NAme the variable ButtonMash.
(add +1 might suit your needs)
Now to check if a variable has a value of 10 (for your needs) you need a Conditional Branch that checks the ButtonMa0sh variable.
If it is >=10 you open the door (I assume you do the mash to open a door and escape)
Othwerwise it goes on doing nothing.

This must be set on a Parallel Process though, so it will check 60 times per second. Add a
Wait 10 command in there, to make it a little more lightweight, cause in parallel the events are too demanding on CPU resources.
I'm not currently able to show you an example, so I will try to explain it as clear as possible.
So you have added the door event to your map and have it as 'Action Button'. Then, in the column in which you can put events, you go to the change variables, choose a variable and pick 'ADD' and 'constant', which is 1. Now, each time the player presses 'Enter' (or any action button) at the door, the variable increases by 1. Now you make a second page in the event, where you set a condition on the left, namely: the variable is equal to 10. When this is the case you put in the event column what you want to happen, probably a transfer event.
I hope this is clear enough for you, if not; feel free to send another message!
Also, I suggest you should check out a few tutorials before trying some complex stuff. I mean, Control Variables, is fundamental knowledge. You won't get far without knowing the basics. Some tutorials on either ACE or MV are similar, so I strongly recommend to check em.

http://forums.rpgmakerweb.com/index.php?/topic/29370-free-tutorial-game-for-vx-ace-events/

https://forums.rpgmakerweb.com/index.php?threads/variables-guide.10099/

https://forums.rpgmakerweb.com/index.php?threads/a-list-of-tutorials-for-beginners.15135/
Also, I suggest you should check out a few tutorials before trying some complex stuff. I mean, Control Variables, is fundamental knowledge. You won't get far without knowing the basics. Some tutorials on either ACE or MV are similar, so I strongly recommend to check em.

http://forums.rpgmakerweb.com/index.php?/topic/29370-free-tutorial-game-for-vx-ace-events/

https://forums.rpgmakerweb.com/index.php?threads/variables-guide.10099/

https://forums.rpgmakerweb.com/index.php?threads/a-list-of-tutorials-for-beginners.15135/

Ahhh okie okie ill keep you update if i manage to work or i didnt manage to understand things soo brb ^__^
You will surely have to understand:
  • Events
  • Event Pages
  • Switches
  • Variables
  • Conditional Branches.

Hopefully when you get a good graps on these you will be able not only make a mash scene, but a whole game. The rest of the things can be learned separately, but these are fundamentals. Transfer Player, Move Event, Show Text along with that knowledge can make a basic game all right. 😉
I have made you this small example, I hope it is clear for you!
I also hope everything works the way it should xD
(When you download the whole file and unzip it to one folder, then run the Game.rpgproject it should work)
Thanks Guys I manage to make it Work ! 😀 😀

Original thread: https://forums.rpgmakerweb.com/threads/mashing-the-button-10-or-more-times-to-make-the-door-open.93919/