Jump to content

retry level button not working


wareja
 Share

Recommended Posts

hi, I've been using phaser for some time now but am having some issue with my game when I press the restart button.

My game goes into an infinite loop and my player can't jump as high as he used to before. Its like as if gravity increased on the stage. and other objects disappear too like they go all the way down to the screen

Can somebody tell me whats wrong here

  retry: function () {
        //this.clearCurrentState()
        this.levelSong.pause()
        this.winSong.pause()
        this.gameOverSong.pause()
        this.shutdown()
        this.game.state.start('Level2')
    },

  shutdown:function()
{
    this.game.world.removeAll()
},

here is the link to my game (My problem is in level 2):

https://exit-exitar.firebaseapp.com

Edited by wareja
made it more clear
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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