8 Directions Movement
8 Directions Movement

The 8 directions movement makes an object move when the player presses the arrow keys or moves the joystick.

8 Directions movement sample

Creation
 
Movement_8DirCreates a new 8 Directions movement object
Class Functions
 
Speed
SetMaxSpeedChange the maximum speed of the object
GetMaxSpeedReturns the maximum speed of the object
SelectMaxSpeedSelects objects based on their maximum speed
SetAccelerationChange the acceleration of the object
GetAccelerationReturns the acceleration of the object
SelectAccelerationSelects objects based on their acceleration
SetDecelerationChange the deceleration of the object
GetDecelerationReturns the deceleration of the object
SelectDecelerationSelects objects based on their deceleration
Instance Functions
 
Speed
SetMaxSpeedChange the maximum speed of the object
GetMaxSpeedReturns the maximum speed of the object
SetAccelerationChange the acceleration of the object
GetAccelerationReturns the acceleration of the object
SetDecelerationChange the deceleration of the object
GetDecelerationReturns the deceleration of the object



JAM © 2005 no one in particular
Project started by David Evans in 2005