Animation (class)

From Moondust Wiki
Revision as of 19:55, 19 March 2015 by Kevsoft (talk | contribs)
Jump to navigation Jump to search

This class provides fields/functions for managing Animations/Effects in the current level.

Animation class
Type Function/Field Return values/Value type Description
Constructor myAnimation = Animation(int internalIndex) Animation Construct a new Animation-Object. Only use this constructor with caution. Use animations() instead!
function Animation:mem(int offset, int fieldtype, object value) nil Sets a value of the Animation struct at a specific address-offset.
function Animation:mem(int offset, int fieldtype) object Returns a value of the Animation struct at a specific address-offset.
Field Animation.x double The x coordinate of the animation.
Field Animation.y double The y coordinate of the animation.
Field Animation.speedX double The x-speed of the animation.
Field Animation.speedY double The y-speed of the animation.
Field Animation.id int The animation-id of the animation.
Field Animation.width int The width of the animation.
Field Animation.height int The height of the animation.
Field Animation.timer int The timer (frames until finished) of the animation.