Difference between revisions of "MovieClip:setGotoAction"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
=== <translate>Description</translate> ===
+
'''Class:''' [[MovieClip]]<br/>
<translate><br />
+
 
Sets a *goto* action to the specified frame. When the movie clip reaches a frame <br />
+
=== Description ===
with goto action, it jumps to the destination frame and continues to play. <br />
+
Sets a "go to" action to the specified frame. When the movie clip reaches a frame with goto action, it jumps to the destination frame and continues to play. This function is usually used to create looping animations.
This function is usually used to create looping animations.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
MovieClip:setGotoAction(frame,destframe)
<source lang="lua">
+
</syntaxhighlight>
MovieClip:setGotoAction(frame,destframe)
+
 
</source>
+
=== Parameters ===
=== <translate>Parameters</translate> ===
+
'''frame''': (int) the frame number<br/>
'''frame''': (int) <translate>the frame number</translate> <br/>
+
'''destframe''': (int) the destination frame number<br/>
'''destframe''': (int) <translate>the destination frame number</translate> <br/>
+
 
 +
{{MovieClip}}

Latest revision as of 15:30, 13 July 2023

Available since: Gideros 2011.6
Class: MovieClip

Description

Sets a "go to" action to the specified frame. When the movie clip reaches a frame with goto action, it jumps to the destination frame and continues to play. This function is usually used to create looping animations.

MovieClip:setGotoAction(frame,destframe)

Parameters

frame: (int) the frame number
destframe: (int) the destination frame number