Difference between revisions of "MovieClip:setReverseAction"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2018.3<br/>
'''<translate>Available since</translate>:''' Gideros 2018.3<br/>
+
'''Class:''' [[MovieClip]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate><br />
+
Sets a reverse action to the specified frame.
Sets a *reverse* action to the specified frame. When the movie clip reaches a frame <br />
 
with reverse action, it changes playing direction. This function is can be used to create back and forth animations, even endless.
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
MovieClip:setReverseAction(frame)
+
MovieClip:setReverseAction(frame)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''frame''': (int) <translate>the frame number</translate> <br/>
+
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<br/>
  
 
{{MovieClip}}
 
{{MovieClip}}

Revision as of 21:47, 24 April 2022

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