Trying to fix 'player and AI can walk through each other'

This commit is contained in:
2014-06-17 20:33:44 -07:00
parent d605f15578
commit 1f941e7a78

View File

@@ -1228,7 +1228,7 @@ GameState.prototype.create = function()
this.physics.arcade.enable(player); this.physics.arcade.enable(player);
player.body.center = new Phaser.Point(player.body.width / 2, player.body.height + player.body.halfHeight); player.body.center = new Phaser.Point(player.body.width / 2, player.body.height + player.body.halfHeight);
player.body.collideWorldBounds = true; player.body.collideWorldBounds = true;
player.body.immovable = true; //player.body.immovable = true;
addAnimation(player, 'bipedwalkleft'); addAnimation(player, 'bipedwalkleft');
addAnimation(player, 'bipedwalkright'); addAnimation(player, 'bipedwalkright');