EditMove 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-DriveCarDetails: 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
 Mouse Event for drag & drop support (Click the image to view full size) |