Difference between revisions of "MovieClip:setGotoAction"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== 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.
 
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.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
MovieClip:setGotoAction(frame,destframe)
 
MovieClip:setGotoAction(frame,destframe)
 
</source>
 
</source>

Revision as of 14:28, 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. <syntaxhighlight lang="lua"> MovieClip:setGotoAction(frame,destframe) </source>

Parameters

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