| Object_Active
Creates a new Active object.
myObject = new Object_Active( Animation, FPS, Width, Height )
myObject = new Object_Active( Animation, FPS )
myObject = new Object_Active( )
Return value
Newly created object.
Parameters
- Animation
Name of an element in the Animations or Pictures bank to use as a stopped animation
- FPS
FPS to set the animation to. Note that this will NOT automatically set to the FPS defined in the animation for technical reasons (Jamagic won't give out the information)
- Width
If specified, the animation will be stretched to this width
- Height
If specified, the animation will be stretched to this height
Adding to JAM
myInstance = myJAM.Create( myObject, X, Y, Width, Height )
myInstance = myJAM.CreateGUI( myObject, X, Y, Width, Height )
Parameters for adding to JAM
- myObject
Object returned by creation
- X
X coordinate to create at
- Y
Y coordinate to create at
- Width
If specified, the object will be stretched to this width
- Height
If specified, the object will be stretched to this height
Comments
The main animations can be set up later through NewAnimation, but an animation can be given in the constructor for convenience. This animation is applied to "Stopped" as direction 0 (up)
JAM © 2005 no one in particular Project started by David Evans in 2005 | |