MovieClip:setReverseAction: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "<source" to "<syntaxhighlight"
Line 5: Line 5:
=== Description ===
=== Description ===
Sets a reverse action to the specified frame.
Sets a reverse action to the specified frame.
<source lang="lua">
<syntaxhighlight lang="lua">
MovieClip:setReverseAction(frame)
MovieClip:setReverseAction(frame)
</source>
</source>

Revision as of 13:28, 13 July 2023

Available since: Gideros 2018.3
Class: MovieClip

Description

Sets a reverse action to the specified frame. <syntaxhighlight lang="lua"> MovieClip:setReverseAction(frame) </source>

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