My take on the spikeman

I followed the spikeman lecture and created a mob that patrols a standard platform length I use in the game. But I also created a version of a mob that patrols along the length of the any surface and uses Raycast2D for wall- and cliff-sensing, using “if” conditions to flip the sprite animation and move in another direction.

1 Like

Privacy & Terms