Jump to content

Tinto

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi, I don't know how to assign the life variable individually to each zombie, avoiding that when one is hit, life is taken away from everyone. Same thing for the infectStatus which affects all zombies and not the individual. Thanks a lot! var zombies; var zombieLife = 3 this.create = () => { zombies = game.add.group(); zombies.enableBody = true; zombies.physicsBodyType = Phaser.Physics.ARCADE; var zombie0 = game.add.sprite(500, 1400, 'zombie'); var zombie1 = game.add.sprite(600, 1400, 'zombie'); zombies.add(zombie0); zombies.add(zombie1); zombies.setAll('anchor.x
×
×
  • Create New...