Difference between revisions of "MovieClip:setReverseAction"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
MovieClip:setReverseAction(frame)
 
MovieClip:setReverseAction(frame)
</source>
+
</syntaxhighlight>
  
 
When the movie clip reaches a frame with a reverse action, it changes its playing direction.
 
When the movie clip reaches a frame with a reverse action, it changes its playing direction.

Latest revision as of 15: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