AI moving through walls?


Today I was working on a snake game, where the player must avoid any walls or snake tails to survive. On the third AI, I noticed that it was going through the walls and ignoring any of the tails, even though I had the same properties for that AI that i had on the other two. Any suggestions? I’m stuck on this one.


third AI? you go throug walls, don’t you check collisions?


When I came across this bug, it turned out that another snake was already filling the conditions. Maybe you’re in the same situation :blush: