GTween:setPosition

From GiderosMobile

Available since: Gideros 2010-2011
Class: GTween

Description

Sets the position of the tween in frames or seconds (depending on .useFrames).

GTween:setPosition(value)

This value will be constrained between -delay and repeatCount*duration. It will be resolved to a .calculatedPosition before being applied.

Negative values: Values below 0 will always resolve to a calculatedPosition of 0. Negative values can be used to set up a delay on the tween, as the tween will have to count up to 0 before initing.

Positive values: Positive values are resolved based on the duration, repeatCount, and reflect properties.

Parameters

value: (number) the position of the tween in frames or seconds