Jump to content

Avoid stopping of sprite on collision


Recommended Posts

I have a few bugs in my game: http://catchalphabets.tk/

This game is help kids learn the correct order of the alphabets. 
When the dude sprite first collects a letter, i.e. A, it stops for a while and moves back, touching the world boundary. How do I prevent that?


 this.physics.arcade.overlap(player, letters, this.collectLetter, null, this); collectLetter: function(player,letter) {        this.arr.push(letter.name);        this.check();                letter.kill();    } 
Link to comment
Share on other sites


  • Recently Browsing   0 members

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