Class: MoveBy

lime.animation.MoveBy

new lime.animation.MoveBy(delta, opt_y)

Move elemenet by offset Also accepts two numbers (x and y)
Parameters:
Name Type Argument Description
delta goog.math.Coordinate | number Offset to move.
opt_y number <optional>
Optionaly use x,y
Source:
Example
var moveleft = new lime.animation.MoveBy(100,0);
sprite.runAction(moveleft);

Extends

Members

scope

Source:

Methods

<private> calcDurationFromSpeed_()

Calculate animations duration based on its speed.
Source:

clearTransition(target)

Clear previously set transition values.
Parameters:
Name Type Description
target lime.Node Target node.
Source:

makeTargetProp()

Source:
See:

reverse()

Source:
See:

setSpeed(speed) → {lime.animation.MoveBy}

Helper function that sets tha animation duration based on the size of the delta. 1 unit means 100px/sec.
Parameters:
Name Type Description
speed number Speed value.
Source:
Returns:
Object itself.
Type
lime.animation.MoveBy

update()

Source:
See: