| Particle creation
Creates a new Particle object.
myObject = new Object_Particle( Animation, FPS, Width, Height )
myObject = new Object_Particle( Animation, FPS )
myObject = new Object_Particle( )
Return value
Newly created object.
Parameters
- Animation
Name of an element in the Animations or Pictures bank to use as an 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). A value of 0 makes the animation static
- 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
Instances of the particle object will play their animation once then self-destruct. This makes them very useful for particle effects (hence the name) especially when given a movement.
JAM © 2005 no one in particular Project started by David Evans in 2005 | |