ChangeAnimation

(Difference between revisions)
Jump to: navigation, search
Zester (Talk | contribs)
(Created page with "Play or Change an Animation Note that it also apply to looped animations. Basic use : object = getObject("object") function onSceneUpdate() -- On "W" Key...")
Newer edit →

Revision as of 00:00, 21 December 2012

Play or Change an Animation

Note that it also apply to looped animations.


Basic use :

   object = getObject("object")
   function onSceneUpdate()
       -- On "W" Key Press
       if isKeyPressed("W")  then
           -- Play Walk Animtion
           changeAnimation(Player, "1")
       end
       -- On "W" Key Release
       if onKeyUp("W") then
           -- Change to Pose
           changeAnimation(Player, "0")
       end 
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox