The Sprite object allows you to access the properties of your animations. Sprite objects can be queried using the GetSpriteObject methods of various objects and their equivalents.
| Actions | |
| GetFrame | Returns one animation frame. |
| AddFrame | Adds a new frame to the animation. |
| InsertFrame | Inserts a new frame to the animation. |
| DeleteFrame | Removes specified animation frame. |
| Reset | Resets the animation. |
| Pause | Pauses the animation. |
| Play | Resumes a paused animation. |
| Script functions | |
| AttachScript | Executes a script file and attaches it to the object. |
| DetachScript | Terminates a specified script file and detaches it from an object. |
| IsScriptRunning | Queries whether a specified script file is running and attached to an object. |
| CanHandleMethod | Queries whether the object supports a method of a specified name. |
| Type (read only) | Returns always "sprite" |
| Name | The internal name of the sprite. |
| Filename (read only) | Returns the filename. |
| NumFrames (read only) | Returns the actual number of animation frames. |
| CurrentFrame | Specifies the index of the currently playing animation frame. |
| PixelPerfect | Specifies if this sprite uses pixel-perfect mouse-over detection. |
| Looping | Specifies if this is a looping animation. |
| Owner (read only) | Returns an object which owns this animation. |
| Finished (read only) | Returns true if the animation already finished playing. |
| Paused (read only) | Returns true if the animation is paused. |
| FrameChanged | The sprite just switched to the next frame. |
Returns one animation frame.
If the method succeeds it returns a frame object.
Adds a new frame to the animation.
Returns the newly created frame.
Inserts a new frame to the animation.
Returns the newly created frame.
Removes specified animation frame.
Resets the animation.
Pauses the animation.
Resumes a paused animation.
Executes a script file and attaches it to the object.
Returns true if the script has been executed succesfuly.
Each WME object can have multiple scripts attached.
Terminates a specified script file and detaches it from an object.
Returns true if the script has been detached succesfully.
Script threads are currently executed event handlers and methods.
Queries whether a specified script file is running and attached to an object.
Returns true if a specified script file is attached to an object.
Queries whether the object supports a method of a specified name.
Returns true if the object is able to handle the specified method.