Detect 2d object touching 3d raycasting object?

Please help, I am using the raycasting extension, and I am attempting to make a spy-shooting game. I just started and am already stuck.
Projectiles don’t work, because there is nothing that can tell if they overlap another 3d object. I need a way to damage the bot when the bot gets hit, and the player when the player gets hit.

Help would be greatly appreciated.

Here is my project: https://arcade.makecode.com/S45991-03166-45177-60607
Press A to shoot.

PS. I’m new, I don’t really know how to post, please tell me if I’m posting in the wrong category or any other rules :slight_smile:

2 Likes

4 things.

  1. Welcome @BoogerBubbleChunks! :smiley:
  2. Great game so far, the art is super good.
  3. You did post in the correct category. I totally get why you were/are concerned about it; I was too when I made my first post.
  4. the problem has a simple fix that’s hard to find if you don’t know what to look for (I’ve also had this problem before). You need to put the “is sprites sprite and othersprite overlaps in z dimension” block into an if statement, then throw those into the standard overlap block. In all theory, this should work. If it doesn’t/if you need more in general help, feel free to ping me. :slightly_smiling_face:
    image

Can’t wait to see how the game turns out
-pecan4