Hello, how are you?
I’m new to the world of game creation and I’m starting with Phaser 3.
My enemies keep getting inside each other.
I’m creating using a for enemies in the group format"this.grupoEnemigo = this.physics.add.group()"
and using this.physics.add.collider(this.enemygroup); at end. I realized that if I create one at a time and use this.physics.add.collider(this.enemygroup); partially solves, but the game crashes a lot. What can I be doing?
You need to add a group collider only once.
But packed sprites passing through each other is an intrinsic problem of Arcade Physics.
1 Like
hello, thanks for the reply. Which physics can I use?
It’s either Arcade or Matter. Matter is a lot more complicated.
1 Like