Jump to content

Starting animation frame


ManBoy
 Share

Recommended Posts

How do I start animation from different frame? 

var randomFrame = RandomUtils.randomFromTo(0,this.animations.getAnimation('Idle').frameTotal - 1);this.animations.getAnimation('Idle').frame = randomEFrame;this.animations.play('Idle'); 

The animation still starts from the first frame.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...