780 B
780 B
move
Moves the object which got defined by setObject
Parameters:
numberx coordinatenumbery coordinatenumberduration 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:
- Takes 2 seconds to move the object from its current position to x15 y3
local mainFrame = basalt.createFrame()
local testButton = mainFrame:addButton("buttonToAnimate")
local aAnimation = mainFrame:addAnimation():setObject(testButton):move(15,3,2):play()
<animation object="buttonToAnimate" play="true">
<move><x>15</x><y>6</y><duration>2</duration></move>
</animation>