Page 1 of 1

Is it possible to do Sonic style running?

PostPosted: Sat Oct 27, 2007 10:29 pm
by Qsmash
I just got my labtop back from punishment and, I want to make a Sonic game before it gets taken again.

Re: Is it possible to do Sonic style running?

PostPosted: Mon Oct 29, 2007 4:00 pm
by Kalladdolf
I think I told u how. If it doesn't work, please tell me. :D

PS: naughty, naughty :wink:

Re: Is it possible to do Sonic style running?

PostPosted: Mon Oct 29, 2007 10:05 pm
by Qsmash
Umm...uhhh...That wasn't me... :shock:

Anyway, can you tell me how to slow down please?

Re: Is it possible to do Sonic style running?

PostPosted: Tue Oct 30, 2007 8:33 am
by Kalladdolf
Key up -> right -> Script Editor:
Code: Select all
xvelocity -=1;
if(xvelocity < 0)
{xvelocity =0;}


the same goes for the left, just the other way round :D

Re: Is it possible to do Sonic style running?

PostPosted: Tue Oct 30, 2007 12:06 pm
by Bee-Ant
SONIC
Keydown>Right>Repeat>ScriptEditor>
Code: Select all
xvelocity+=0.1;

Keydown>Left>Repeat>ScriptEditor>
Code: Select all
xvelocity-=0.1;

DrawActor>ScriptEditor>
Code: Select all
if(xvelocity>=3)
{
    xvelocity=3;
}
if(xvelocity<=-3)
{
    xvelocity=-3;
}
//to keep his speed to constant

KeyUp>Right>ScriptEditor>
Code: Select all
xvelocity-=0.1;
if(xvelocity==0)
{
    xvelocity=0;
}

KeyUp>Left>ScriptEditor>
Code: Select all
xvelocity+=0.1;
if(xvelocity==0)
{
    xvelocity=0;
}

Re: Is it possible to do Sonic style running?

PostPosted: Tue Oct 30, 2007 11:03 pm
by Qsmash
Thanks, I didn't realize I couldn't slow down until I tried it.