Need help, having issues with projectile to player detection

I am making a game like Blazing Beaks and Tomb Of The Mask and I’m calling it Flaming Fangs, anyway, when I added the Mukkoom Spit kill player code it all of a sudden broke. For some reason, when I checked it didn’t seem to break even when it was searching for a player+spit collision after the spit was destroyed, I think the problem is something to do with the player. I’ve tried adding variables that check existence and timing of these things, but it still doesn’t work.
(BTW in the code rokkoom=mukkoom because halfway writing the code I thought of a better name)
https://makecode.com/_WspFFdHv26uE
I made a mess of the code (sorry) but focus on the mukkoom movement, spit creation, spit deletion and spit+player interaction. Also moderators if the image doesn’t work I don’t really care just let me make this post.

2 Likes

Bro, the bat is sooo cute. maybe find an extension download to do this? or make the spit follow you? maybe find a way to make a sprite for the “face” that looks at you and the mukkoom spits at you depending on where the “face” it looking at.

1 Like

Never mind, I did it! Turns out making the spit a sprite instead of a projectile works! https://makecode.com/_UcYV427VXCpE

1 Like

I’ve thought of an enemy like that and will add it later on, but I feel like this diagonal slow spray is right for it.

1 Like

You know what? This is probably one of those things that happen to projectiles, I’m going to rewrite this with sprites instead. Plus, this allows the Mukkoom to shoot the player offscreen.

1 Like