Custom Bounds and a Wall Target

New to Phaser (3) so a question. I am creating a simple game with a wall to shoot at like the old shooting galleries or target practice. They targets are on the wall so if the bullets travel up from the bottom of the screen do i create custom bounds for each target for collisions. (if that’s possible) instead of having the bullets go off the top of the screen or bounce off in different directions. The targets are placed throughout the background image. I hope that is clear. Is this possible?

thx much

It doesn’t sound like you need custom bounds. But what do you want to happen?

  1. When a bullet hits the target, it should …
  2. When a bullet hits the edge of the game, it should …

So the issue is the “edge of the game” isn’t really the screen boundaries. If you’re shooting at a wall (being the 2D background image) and the targets are spaced throughout the wall, it’s more of a question of when and where the bullets hit the wall or a target. It’s a z-depth problem of perspective i think. Probably not clear.