thundahguy

Members
  • Content count

    2
  • Joined

  • Last visited

  1. I have added a spikes sprite and i'm trying to get collision working spikes = game.add.group(); spikes.enabledBody = true; var spike = spikes.create(150, game.world.height - 110, 'spikes'); spikes.body.immovable = true; and in update function game.physics.arcade.collide(player, spikes) the problem is, that the player sprite goes right trough the spikes
  2. How do i add health to a character

    I'm expanding the phaser tutorial game and i want to add health to the character plus use a plugin i found (https://github.com/matthiaswh/phaser-health-meter). http://phaser.io/docs/2.4.3/Phaser.Component.Health.html I understand nothing in the documentation and i'm clueless on how to add health.