Is it possible to make a spritesheet with two collision shapes?

Hi, I did something similar long time ago with Phaser 2, not sure how to do it now with Phaser 3, but just some ideas…

  • Option 1: Try to use the char sprite divided as 2 sprites feet+body (2 hit bodies) attached (sync X, Y)
  • Option 2: Try to use the char sprite with reduced hit body, and another one transparent over (as another body)
  • Make the collisions using groups, all buildings colliding with feet body (purple), all bullets colliding with char body (green)

Maybe this also helps

1 Like