XeomDime

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. Hi, can you help me? LoseState doesn't work ... i tried a lot of times to fix this problem but i always failed. here's the code: http://pastebin.com/V4RXCrGp
  2. Hi, i don't know why the loseState doesn't work , i tried a lot of times but the loseState still doesn't work. Please can you help me? Here's the code: http://pastebin.com/FYSKj1fh
  3. XeomDime

    LoseState

    doesn't work
  4. XeomDime

    LoseState

    Hi, i don't know why the loseState doesn't work , i tried a lot of times but the loseState still doesn't work. Please can you help me? Here's the code: http://pastebin.com/FYSKj1fh
  5. XeomDime

    Group Overlap

    Hi, why when i hit an enemy the entire enemies' group are destroyed? I want the individual enemy will be destroyed and not the entire group. //create function this.enemies = []; for (var i = 0; i < 1; i++){ this.enemies.push(enemy.create(game.world.randomX +1000,400, 'nemici')); } for (var i = 0; i < 2; i++){ this.enemies.push(enemy.create(game.world.randomX -1000, -200, 'nemici')); } }, update: function(){ for (var ii = 0; ii < this.enemies.length; ii++){ game.physics.arcade.moveToObject(this.enemies[ii],this.nave,vel_nem, this); game.physics.arcade.overlap(this.enemies[ii], this.bullets , this.morte_enemy,null,this); }
  6. Hi i've got a problem, with this code only one enemy moves to the ship and the others don't move.i tried a lot of times but i don't solve the problem. Can you help me? //create functionenemy = game.add.group();enemy.enableBody = true;enemy.physicsBodyType = Phaser.Physics.ARCADE;for (var i = 0; i < 16; i++) this.enemies = enemy.create(game.world.randomX, game.world.randomY, 'nemici');//update function game.physics.arcade.moveToObject(this.enemies, {x: this.nave.x, y:this.nave.y},vel_nem, this);