GTween:setPosition

From GiderosMobile
Revision as of 02:14, 8 December 2025 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2010-2011<br/> '''Class:''' GTween<br/> === Description === Sets the position of the tween in frames or seconds (depending on .us...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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