MovieClip:setGotoAction: Difference between revisions
From GiderosMobile
No edit summary |
mNo edit summary |
||
| Line 3: | Line 3: | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/MovieClip|MovieClip]]<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate | <translate> | ||
Sets a | 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. | ||
with goto action, it jumps to the destination frame and continues to play. | </translate> | ||
This function is usually used to create looping animations. | |||
<source lang="lua"> | <source lang="lua"> | ||
MovieClip:setGotoAction(frame,destframe) | |||
</source> | </source> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''frame''': (int) <translate>the frame number</translate> <br/> | '''frame''': (int) <translate>the frame number</translate> <br/> | ||
Revision as of 01:07, 26 April 2020
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