Page 1 of 1

Help with motocross game

PostPosted: Thu May 17, 2007 3:15 pm
by FiLLLe1
Hi!
I'm making a motocross game now. I didn't realise i would be so hard it seems to be and now i need help.

Question 1:
How to make the bike accelerate to a specific speed? I have tried the script "xvelocity+=1;". Now the bike accelerate but it keeps accelerating. What should I do to make it stop at a specific speed?

Question 2:
The map isn't straight everywhere. Do i need specific animations that makes the weels hit the ground all the time? Example:

http://img396.imageshack.us/img396/7213/helppickc5.jpg

Or is it possible to make a script so i don't need to fix about 100 new animations?

Sorry if it's many questions but i'm not good at game editor but I really want to learn.

//Fille

PostPosted: Fri May 18, 2007 6:28 am
by DilloDude
For you first question, you can use an if statement:
Code: Select all
if (xvelocity < 20)
{
    xvelocity += .7;
}//adjust the values for your preference

you might wantr to make a separate variable, however, so that the direction is relative to your speed and also so that you don't change speed in the air - play around with it.

For your second question, you will probably want to make the wheels separate actors. They can have their rotating animation, and the bike can have another. A similar issue was discussed here: http://game-editor.com/forum/viewtopic.php?t=1339
You probably want to add some stuff so that the wheels stay the same distance apart. If you have problems, I may be able to make a demo soon.

PostPosted: Fri May 18, 2007 9:37 pm
by FiLLLe1
ok thanx :D , will try that now.

PostPosted: Sun May 20, 2007 4:23 am
by Sgt. Sparky
Should I make a Demo?

PostPosted: Sun Aug 12, 2007 4:20 pm
by florafinn@yahoo.com
hi that game looks cool FiLLLe1
My username is my email adress
email me with your game attached to the email please! :)

PostPosted: Thu Aug 16, 2007 10:24 pm
by florafinn@yahoo.com
hi i realy thougt that pic looked cool! CAN you attach your game

thanks

PostPosted: Sat Aug 18, 2007 3:59 pm
by Sgt. Sparky
I wrote:Should I make a Demo?

Should I? :D

Re:

PostPosted: Sun Nov 11, 2007 6:39 pm
by 4erv'
Sgt. Sparky wrote:
I wrote:Should I make a Demo?

Should I? :D


Yes, You should... :D

Re: Re:

PostPosted: Mon Nov 12, 2007 9:51 pm
by Sgt. Sparky
4erv' wrote:
Sgt. Sparky wrote:
I wrote:Should I make a Demo?

Should I? :D


Yes, You should... :D

I will make a demo after I finish my current project: Wall Ball.

Re: Help with motocross game

PostPosted: Sat Nov 17, 2007 1:20 pm
by 4erv'
:)

Re: Help with motocross game

PostPosted: Mon Nov 19, 2007 8:32 pm
by Sgt. Sparky
4erv' wrote::)

:D
I will start working on the demo now. :D