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. |
Функции для работы со сценариями | |
AttachScript | Выполняет файл сценария и прикрепляет его к объекту. |
DetachScript | Выгружает из памяти файл сценария и удаляет его связку с объектом. |
IsScriptRunning | Выясняет, прикреплён ли указанный файл сценария к объекту. |
CanHandleMethod | Выясняет, поддерживает ли объект метод с указанным именем. |
Type (только для чтения) | Returns always "sprite" |
Name | The internal name of the sprite. |
Filename (только для чтения) | Returns the filename. |
NumFrames (только для чтения) | 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 (только для чтения) | Returns an object which owns this animation. |
Finished (только для чтения) | Returns true if the animation already finished playing. |
Paused (только для чтения) | 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.
Выполняет файл сценария и прикрепляет его к объекту.
Возвращает true, если сценарий был успешно выполнен.
К каждому объекту WME можно прикреплять несколько сценариев.
Выгружает из памяти файл сценария и удаляет его связку с объектом.
В случае удачного выполнения, метод вернёт значение true.
Экземпляры сценария (threads) - это исполняемые в настоящий момент обработчики событий и методы, которые тем или иным образом включают в себя выполнение данного сценария.
Выясняет, прикреплён ли указанный файл сценария к объекту.
Возвращает true, если указанный сценарий прикреплён к объекту.
Выясняет, поддерживает ли объект метод с указанным именем.
Возвращает true, если объект поддерживает метод с указанным именем.