Jump to content

Stop signal for loop animations


kay
 Share

Recommended Posts

Store a reference to it then use the Signal.remove method to remove that reference:

// add a loop event, storing a reference for latervar loopEvent = anim.onLoop.add(animationLooped, this);// use the remove function on this event along with the reference to remove itanim.onLoop.remove(loopEvent);

This works for virtually all of Phaser's events, which use this Signal implementation for their operation.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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