How do I make an actor move like a car

Modified: 2008/05/02 15:24 by 131.107.0.102 - Categorized as: Game Creator, How To Guides
Edit

Move like a car

Basic Idea: Use the handy shortcut "drive like a car by pressing keys (top view)". See notes below if you want to create this behavior from scratch. .

Sample Game: http://www.popfly.com/users/team/HowDoI-DriveCar

Details: Using the shortcut works great. But if you really want to know how this works, read on.

You basically need to define the following 3 motions:
  • UP arrow key: Move forward relative to self
  • LEFT arrow key: Rotate counter clockwise relative to self
  • RIGHT arrow key: Rotate clockwise relative to self

All motions are defined for "While Receiving Event" so that motion happens only while the key is pressed.

Actor->Behaviors
Image

Mouse Event for drag & drop support (Click the image to view full size)

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.