Context: My map is split up into different elevations. Each elevation has 2 tile layers: the ground and the objects. A tree would be in the object tile layer and grass would be on the ground tile layer.
In the image above you can see that there is a bridge and ladder. The cliff wall and cliff grass have collision boxes to prevent the player from walking through or off the cliff. However, I want to ‘erase’ those collision boxes when the player is on a bridge or ladder but my current solution does not generalize well (i.e. for the bridge I make the player only detect collisions on the object layer, and for the ladder I make the player non-collidable and only allow vertical movement). Does anyone know of a better approach?