Gaming World Forums
Creativity => Game Design & Demos => Topic started by: Nokoi on January 31, 2010, 02:18:12 am
-
I have an event where I want the player to mash the enter button a certain amount of times in a time limit of 15 seconds. How can I do this? It sounds simple and must be possible, can someone give me a quick tutorial? My game is in desperate need of variety.
-
Make a parallel event with a "wait for key press" delay on your input processing. Have it add to a variable every time you press the button. Either use the built in counter, or make your own. Check the value of the variable at the end of the timer.
EDIT - Or, just use labels and the "go to label" function to take the place of the parallel.
(http://pub.gamingw.net/52939/quicktut.png)
-
Yeah, I'm actually kinda confused here, what exactly does a Parallel Process do? How exactly does it work?
-
Basically, they allow you run events in the background while other things are going on.
-
Yeah, I'm actually kinda confused here, what exactly does a Parallel Process do? How exactly does it work?
tip: if you don't know that, you shouldn't be doing this stuff for a while yet...
-
Thanks for the help =.=
I just never used Parallel Process before... I know a bunch of the other stuff... The help file barely helps me at all anyway...
And there were many situations in the past where I would have wanted a parallel process >.>
-
tip: if you don't know that, you shouldn't be doing this stuff for a while yet...
never follow advice of this form if you ever want to move forward :)