• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Acceleration

Looking for a way I can speed up my spaceship object so that it shows an acceleration instead of just going from zero to whatever number. Any help would be appreciated.
 

rytan451

Member
GML:
//Create
accel = 0.1;
maxSpd = 5;
_friction = maxSpd / (maxSpd + accel);

//W Key
speed = (speed + accel) * _friction;
 
Top