Hello,
I have a problem with handling the collision between sprites. I have a group of enemies and a player sprite. I want none of the sprites to be able to move trough each others. At first I had the enemy body set to immovable and that disabled the player from pushing the enemy around upon collision. However, when I added more enemies to the group, I found that if the enemy bodies is set to immovable = true - they will be able to walk straight trough each others even if they have an inter
If both objects in a collision are immovable, Phaser isn't allowed to separate them (because immovable), so they will pass through each other.
You can try
enemies.setAll('body.immovable', true);
game.physics.arcade.collide(player, enemies);
enemies.setAll('body.immovable', false);
game.physics.arcade.collide(enemies);