#Implementing stairs in a 2D top down game

2 messages · Page 1 of 1 (latest)

woven obsidian
#

Anyone have any idea on how to make 2D top-down stairs?
So far I've made this, see gif

It's really buggy and not really scalable. These stairs works with a very specific config depending on position, nearby walls and which player going up the ramp.
Also when reaching the top I want the player to reach the next level. As it is right now it's a local co-op for proof of concept, but it's suppose to be a multiplayer game. So I only have to care about one player progressing to the next level.

Anyone have a suggestion on how to go by doing this?

meager niche
#

I'm pretty sure 2D stairs work by adding the slope of the stairs (up/down) to the left/right movement of the character while it's in the stair area.