I'm making a game that when you hit a bonus that increases your speed. Now I want it to only last for X amount time. How do I do that?
Printable View
I'm making a game that when you hit a bonus that increases your speed. Now I want it to only last for X amount time. How do I do that?
Try the "function eggtimer" extension. It's perfectly suited for this.
Just enqueue a function you would call "disable bonus" for X_seconds * framerate. Then add a condition "on eggtimer function "disable bonus" and set the speed to normal there.
If you didn't get that, take a look at the example that comes with the eggtimer extension.
Where can I get this "function eggtimer" extension?
Should be included with one of the bonus packs.
Look at the right of your screen under "Quick File Links".