Active
Active

The active object allows you to create sprites with animations, directions, movements and more.

All instance functions can be called from the class. This will apply the setting to all currently selected objects.

Creation
 
Object_ActiveCreates a new Active object
Class Functions
 
Animations
NewAnimationCreates a new animation
GetAnimationFromReturns the animation object for a given name / number
SetAnimationChanges the current animation of all instances
GetAnimationReturns the current animation of the first selected instance
SelectAnimationSelects objects based on their current animation
Instance Functions
 
Animations
SetChanges the current animation and FPS
SetAnimationSurfaceChanges the animation to the given surface - acts as a static image
SetAnimationChanges the current animation
SetAnimationNearChanges the current animation intelligently
GetAnimationReturns the currently playing animation
Directions
SetAnimationDirectionChanges the direction of the animation
GetAnimationDirectionReturns the direction of the animation
RestoreAnimationDirectionAllows the direction to change with the movement after setting it exclusively
FPS
SetFPSChanges the FPS of the animation
GetFPSReturns the FPS of the animation
Collision
IsPointInChecks if the given point is within the collision mask



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