Is it possible to do Sonic style running?

Talk about making games.

Is it possible to do Sonic style running?

Postby Qsmash » 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.
Image
User avatar
Qsmash
 
Posts: 23
Joined: Sun Sep 30, 2007 2:39 am
Score: 1 Give a positive score

Re: Is it possible to do Sonic style running?

Postby Kalladdolf » Mon Oct 29, 2007 4:00 pm

I think I told u how. If it doesn't work, please tell me. :D

PS: naughty, naughty :wink:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Is it possible to do Sonic style running?

Postby Qsmash » Mon Oct 29, 2007 10:05 pm

Umm...uhhh...That wasn't me... :shock:

Anyway, can you tell me how to slow down please?
Image
User avatar
Qsmash
 
Posts: 23
Joined: Sun Sep 30, 2007 2:39 am
Score: 1 Give a positive score

Re: Is it possible to do Sonic style running?

Postby Kalladdolf » Tue Oct 30, 2007 8:33 am

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
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Is it possible to do Sonic style running?

Postby Bee-Ant » Tue Oct 30, 2007 12:06 pm

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;
}
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Is it possible to do Sonic style running?

Postby Qsmash » Tue Oct 30, 2007 11:03 pm

Thanks, I didn't realize I couldn't slow down until I tried it.
Image
User avatar
Qsmash
 
Posts: 23
Joined: Sun Sep 30, 2007 2:39 am
Score: 1 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron