Search the Community
Showing results for tags 'classic rpg'.
Hello everyone, I've been working on a little something for a while now (top-down classic rpg) using phaser. For the most part it works quite well, but there is just one thing that I can't seem to get the hang of... Side-on staircases. Forward facing staircases are no problem at all, but the real challenge comes when attempting to create side on stair cases like we see in the image attached. I've made progress enough to get the player sprite to move up and down at a 45 degree angle, and 'almost' so that you aren't able to walk off the edges and only each end. But it's very tacky and feels hacked together, since it's using a simple check of tile properties to determine whether they are a staircase tile or not. When variation comes in to it, the whole thing falls apart, considering all the different types of staircases / entrances or exits you might have. It's particularly challenging since I'm using arcade physics, I was thinking of moving to P2 so I can do a polygon check instead, thus allowing you to only travel 45 degrees while stood on that particular area. Has anyone else come across this problem before? Am I perhaps missing a blatantly obvious answer (aside just not bothering at all)? Many thanks