Ah, okay, I see what you mean. Try something like this:
Code:
int SpeedUpUntil = 0;
void onPlayer(jjPLAYER@ play) {
if (SpeedUpUntil > jjGameTicks) {
//adjust player's xspeed and such in here
}
}
Then whenever you want to turn on the speed up effect, in an onObjectHit or whatever, set SpeedUpUntil = jjGameTicks + 10 * 70; where 10 is the number of seconds you want the effect to last.
(if you want to support cooperative, SpeedUpUntil should be an array<int> instead of a int .)
__________________
|