Error in my game

i codded more of some boss mode but when i use logic blocks, it makes error in the very beginning. i cant seen to find the problem. can you figure it out? thanks!

Try this one: https://makecode.com/_bULgm5KeMHfX. You needed to move the conditional check on projectile2 into the same branch as the assignment to projectile2. Since it was in a different branch, projectile2 was null.

ok. thanks!