IsAnimationOver

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
 
Line 3: Line 3:
 
Do something when the current animation has finished playing. Note that it also apply to looped animations.
 
Do something when the current animation has finished playing. Note that it also apply to looped animations.
  
'''Example:'''
+
{{lua-function-param|object|object to operate on}}
  
 
     object = getObject("object")
 
     object = getObject("object")

Latest revision as of 00:59, 9 February 2014

isAnimationOver(object)

Do something when the current animation has finished playing. Note that it also apply to looped animations.

  • object : object to operate on
   object = getObject("object")
   function onSceneUpdate()
           if isAnimationOver(object) then
               --do something 
           end   
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox