Yeah. I'm not a very good scripter, but you could do something like:
Code:
var inc;
define speed, skill2;
if (key_q==1)
{
while(key_q==1) //wait for Q to not be pressed.
{
wait(1);
}
if (my.speed >= 3)
{
inc = -0.1;
my.speed += inc * time_step; //get it started
}
if (my.speed <= 0)
{
inc = 0.1;
my.speed += inc * time_step; //get it started
}
while( (my.speed < 3) && (my.speed > 0) )//while speed still needs to be changed
{
my.speed += inc * time_step; //change speed
wait(1); //run other things
}
}
Didn't try it, but it should work. Although, again, I'm a beginner too...
(btw, its not very efficient. Someone more experienced might alter that. Also, it only
changes the speed. It doesn't allow for a lot of time to use the speed, particularly if its in one large While(1) loop.)