In 2D games, characters move through different levels of terrain

My game character needs to cross such as sea bridge, mountain bridge, how to solve the problem of physical collision, currently using real-time computing, but I feel that this is a bad solution

In my game, i have the “illusion” of depth by using the tileset itself’s appearance, everything is pretty much on the same plane. I took reference from the old pokemon games where the ledges you jump from are basically just tiles that look like their elevated.

To make the player able to walk past the tile, i just created an alternative tile that doesnt have a collision and placed that under the bridge

2 Likes

Exactly how I did it in one of my learning projects. :+1:

Pixel art version - the = is the ladder

^^^=^^^
^^^=^^^
^^^=^^^