I think more advanced ppl would do it on the fly.
Add event -> key down: right arrow -> script editor:
- Code: Select all
//not sure how to declare variables but they might help in this bit of code...
//Also not sure if it redeclares them...
//Varibles can simply be replaced with set numbers.
int speed;
int topspeed=10;
int delay;
delay++;
if (delay=5)
{
if (speed!=topspeed)
{
speed++;
xvelocity+speed;
}
delay=0;
}
Something along those lines... would probably have to make a key up code to do the slow down with much less delay.
My syntax probably incorrect in a few places but the effect should achieve a 'sonic' style of speeding up I think and allow you to change speed limit...
just add some if statements to change to faster animations as speed increases...
probably make 'speed' a global variable for changing animations when changing direction and stuff in other key events.