Difference between revisions of "GTween:getPosition"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2010-2011<br/> '''Class:''' GTween<br/> === Description === Gets the position of the tween in frames or seconds (depending on .us...") |
(No difference)
|
Latest revision as of 01:40, 8 December 2025
Available since: Gideros 2010-2011
Class: GTween
Description
Gets the position of the tween in frames or seconds (depending on .useFrames).
(number) = GTween:getPosition()
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.
Return values
Returns (number) the position of the tween in frames or seconds
- GTween
- GTween.new
- GTween.nextTween
- GTween.stopAll
- GTween:deleteValue
- GTween:getDelay
- GTween:getInitValue
- GTween:getPosition
- GTween:getValue
- GTween:getValues
- GTween:init2
- GTween:isPaused
- GTween:resetValues
- GTween:setDelay
- GTween:setPaused
- GTween:setPosition
- GTween:setValue
- GTween:setValues
- GTween:swapValues
- GTween:toBeginning
- GTween:toEnd