• Content Count

  • Joined

  • Last visited

Everything posted by thundahguy

  1. I have added a spikes sprite and i'm trying to get collision working spikes =; spikes.enabledBody = true; var spike = spikes.create(150, - 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. I'm expanding the phaser tutorial game and i want to add health to the character plus use a plugin i found ( I understand nothing in the documentation and i'm clueless on how to add health.