Sonic style running?
Posted: Sat Oct 27, 2007 11:29 pm
Can someone teach me how to make sonic accelerate when he's running?
xvelocity = xvelocity + 1.5;
if(xvelocity > 20)
{xvelocity = 20;}
xvelocity = xvelocity - 1.5;
if(xvelocity < -20)
{xvelocity = -20;}