Is it possible to do Sonic style running?
Posted: Sat Oct 27, 2007 10:29 pm
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 constant
xvelocity-=0.1;
if(xvelocity==0)
{
xvelocity=0;
}
xvelocity+=0.1;
if(xvelocity==0)
{
xvelocity=0;
}