Hi, so I am new to programming and I am making a 2D shooter game. I have created a class for the enemies and a class for the projectile which is called whenever I shoot. However, theres needs to be a collider for each enemy which I dont know how to currently do. Also there are walls in the game and I dont know how to make projectiles collide with the walls. I am uploading my code, if anyone can help it would be appreciated.
https://easyupload.io/af8fuf
Look through the Arcade Physics examples.
You can collide a group in one call, you don’t need one collider for each sprite.
1 Like
Hi, can you please point to a specific example as I’m not sure what to look for.
Actually this would be a good place to start: making-your-first-phaser-3-game/part6.
1 Like
Thank you dude that helps a lot