Animation (class)

From Moondust Wiki
Revision as of 17:14, 1 November 2014 by Kevsoft (talk | contribs) (Created page with "Category:LunaLua API Category:LunaLua classes This class provides fields/functions for managing Animations/Effects in the current level. {{Class table‎|Animation cla...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.id int The width of the animation.
Field Animation.timer int The timer (frames until finished) of the animation.