So I'm trying to make these snakes that can climb walls, but get destroyed once they hit a ceiling.
(If you've played Mega Man 3, think of Snake Man's weapon)
I can get them to climb the walls, but the same logic somehow isn't destroying them. After the climb up, they go straight through all the other walls.
I've attached the code and the layout. If anyone has any ideas or clues, I'd be very grateful. I'm sure I'm missing something obvious.
PS The snakes are shot from the main character as a jump attack, so there's a little platform behavior to have them 'hop' out when created, fall straight down, and then start crawling. You'll see that in the code. That all works fine; they just won't collide with the wall after they start climbing.