Jump to content

How make an animation play before my character dies


Recommended Posts

I'm trying to make my character have an animation before the game resets:

playerDie: function(){
    if(game.lives > 0){
        game.lives -= 1;
        game.time.events.add(Phaser.Timer.SECOND * 10, player.kill);

Link to comment
Share on other sites


  • Recently Browsing   0 members

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