Difference between revisions of "GTween:setPosition"
From GiderosMobile
(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...") |
(No difference)
|
Latest revision as of 02:14, 8 December 2025
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
- 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