Difference between revisions of "MovieClip:setReverseAction"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2018.3<br/> | '''Available since:''' Gideros 2018.3<br/> | ||
+ | '''Class:''' [[MovieClip]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Sets a reverse action to the specified frame. | |
− | Sets a | + | <syntaxhighlight lang="lua"> |
− | with reverse action, it changes playing direction. This function | + | MovieClip:setReverseAction(frame) |
− | + | </syntaxhighlight> | |
− | + | ||
− | + | When the movie clip reaches a frame with a reverse action, it changes its playing direction. | |
− | + | ||
+ | This function can be used to create back and forth animations, and even endless animations. | ||
+ | |||
=== Parameters === | === Parameters === | ||
− | '''frame''': (int) | + | '''frame''': (int) the frame number<br/> |
+ | |||
+ | {{MovieClip}} |
Latest revision as of 14:30, 13 July 2023
Available since: Gideros 2018.3
Class: MovieClip
Description
Sets a reverse action to the specified frame.
MovieClip:setReverseAction(frame)
When the movie clip reaches a frame with a reverse action, it changes its playing direction.
This function can be used to create back and forth animations, and even endless animations.
Parameters
frame: (int) the frame number