Difference between revisions of "MovieClip:setReverseAction"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Sets a *reverse* action to the specified frame. When the movie clip reaches a frame <br /> with...")
 
Line 7: Line 7:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= MovieClip:setReverseAction(frame,)
+
MovieClip:setReverseAction(frame)
 
</source>
 
</source>
'''frame:''' (int) the frame number ''''''<br/>
+
'''frame''': (int) the frame number ''''''<br/>

Revision as of 10:16, 23 August 2018

Available since: Gideros 2018.3

Description


Sets a *reverse* action to the specified frame. When the movie clip reaches a frame
with reverse action, it changes playing direction. This function is can be used to create back and forth animations, even endless.

 MovieClip:setReverseAction(frame)

'frame: (int) the frame number '