View Single Post
Status: Offline
Posts: 40
Join Date: Jan 2016
Location: J Street
Default 03-08-2018, 06:40 PM

Originally Posted by InstigatedApprentice View Post
Hi everyone

So I'm creating a game in which there is a motorbike that is controlled using the arrow keys. Pressing spacebar causes the motorbike to do a wheelie. I have managed the wheelie part by starting an event when the spacebar is pressed to call a turn function which causes the motobike to tilt backwards.
Unfortunately, it seems that when the motorbike is tilted backwards, pressing the forwards key causes it to zoom off in whichever way the motorbike is facing, which in this instance would be upwards at a 45 degree angle.

Does anyone have any idea on how to stop this from happening?

Many thanks,

In general, the "as seen by" method extension is usually helpful to me in a scenario like this.
I would make the "move" method (the method that makes the motorbike go forward) be "as seen by" an object that is always flat to the ground. If you want the motorbike to turn left or right, make the object flat to the ground turn.

EDIT: On second thought, there is an easier way.
Try making a dummy on the motorbike that has the "forward/turning" control instead of the motorbike, and set the motorbike's vehicle to the dummy. Keep it so that the motorbike, not the dummy, turns backwards for the wheelie, though.

Starring, written, directed, and produced by sometimes618.

Get Alice Fighters v0.7:

Last edited by sometimes618; 03-08-2018 at 06:46 PM.
Reply With Quote