717 B
717 B
offset
Changes the offset on the object which got defined by setObject
Parameters:
numberx offsetnumbery offsetnumberduration in secondsnumbertime - time when this part should begin (offset to when the animation starts - default 0)tableobject - optional, you could also define the object here
Returns:
animationAnimation in use
Usage:
local mainFrame = basalt.createFrame()
local subFrame = mainFrame:addFrame("frameToAnimate")
local aAnimation = mainFrame:addAnimation():setObject(subFrame):offset(1,12,1):play()
<animation object="frameToAnimate" play="true">
<offset><x>1</x><y>12</y><duration>1</duration></offset>
</animation>