Jump to content

How to remove old Animations ?


horror812
 Share

Recommended Posts

#trueicecold, thx for response, but this method don't work for me

I want to revive old sprite with other animation after killed

for example: 

sprite.animations.add('explosion',[1,2,3])sprite.play('explosion',12,false,true) // kill on complete //# after kill -> use old this sprite sprite.revive();sprite.animations.destroy()sprite.animations.add('other',[3,2,4])sprite.play('other'...)

then in animation update error : "Uncaught TypeError: Cannot read property 'getFrame' of null"

Phaser.Animation.update  -> Phaser.AnimationManager.update -> Phaser.Sprite.preUpdate

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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