How do I get a character to walk on walls and ceilings?

I am making a 2D game and I want a character to follow the surface of the platform they are on even if that means walking on the wall or the ceiling. Basically a Zoomer from NES Metroid 112910-zoomer.gif

I am trying to make this same enemy! How did you solve it?

I would like to learn how to do this as well… Please share

Hello.

Its simple, you only need to check its collider as "trigger or simply remove the collider component.

So the wall will be rendered there, but for collissions its like that wall doesnt exist, so all other colliders can pass through it.

Ps: This is a very basic issue, you should watch some tutorial about colliders to learn how to use them and what they can do.

Bye!