• Content count

  • Joined

  • Last visited

  1. Thanks a lot! I finally got it to work with some tweaking.
  2. Thanks for the reply. It includes "this.player.body.touching.down" because otherwise he goes infinitely high and just floats around. He needs to be able to jump , but only when touching down on ground and branches. The main problem is his ability to jump/bounce off things is applied to the fireflies. I need to somehow specify that he can jump only when touching down on the ground and branches, but not on any bugs.
  3. I'm making a simple bug-catching game where the main character catches the bugs using the kill() function when they overlap. It's working, except that he can bounce on the bugs. How can I stop him from being able to bounce on them? The update function looks like this: game.physics.arcade.overlap(this.player, this.fireflies, this.takeFirefly, null, this); and the takeFirefly function looks like this: takeFirefly: function(player, firefly) { firefly.kill(); score++; this.txtScore.setText( score.toString() ); }, main.js