|
I may not know GML, but I can tell you the theory!
You will need:
* To know how to make Mario jump in the first place * Two counters (aka values, variables)
Preliminary. Make sure both counters start the level at zero (0).
Preliminary. Edit the jumping so that Mario can only jump if the First Counter is less than three.
Preliminary. Also edit the jumping so that Mario will jump at different heights for the following conditions:
* First Counter = 0, Mario will do his first jump * First Counter = 1, Mario will do the second (slightly higher) jump * First Counter = 2, Mario will do his highest third jump.
1. Every time Mario jumps, add 1 to the First Counter.
2. When Mario hits the ground, set the Second Counter to 10.
3. If the Second Counter is equal to or less than zero (0), set the First Counter to zero (0).
4. Subtract 1 from the Second Counter. Make sure this is in a place in the script where it will always run.
If the delay between jumps is too short to successfully triple-jump, increase the amount that you set Second Counter to -- ie. in step 2, change 10 to 15 or 20. A higher number means Mario can do triple jumps with a greater delay in between.
This post has been edited by Draco Icebane on Aug 30 2007, 01:34 PM
|