Is it possible to do Sonic style running?
I just got my labtop back from punishment and, I want to make a Sonic game before it gets taken again.
Game Editor discussion board
http://game-editor.com/forum/
xvelocity -=1;
if(xvelocity < 0)
{xvelocity =0;}xvelocity+=0.1;xvelocity-=0.1;if(xvelocity>=3)
{
xvelocity=3;
}
if(xvelocity<=-3)
{
xvelocity=-3;
}
//to keep his speed to constantxvelocity-=0.1;
if(xvelocity==0)
{
xvelocity=0;
}xvelocity+=0.1;
if(xvelocity==0)
{
xvelocity=0;
}