How walk on Stairs - Paper 2D
Hello. I'm developing a 2D game without programming experience , just watching tutorials and I would like to know how to make my character walk up stairs like in Castlevania games. I want the character up the stairs when the player presses a button (Up) and walk in the direction of the stairs. But if not press the button, the character walks in front of the stairs, continuing on the floor.
asked Mar 25 '15 at 04:04 PM in Blueprint Scripting
As long as you have the player controller and the character set up, you could simply use the 'Linear Stairs' within the editor, shrink them down to where they're 2D and place them into your level. Your character would then walk up and down the staircase without any issues.
I was also able to get this same result by stacking up the platforms in 2D Side Scroller however, it was a bit more rigid than the linear stairs are.
answered Mar 25 '15 at 06:01 PM
I have received some information back from the developers. It's been suggested that the best way to approach this is to set up a new collision channel in the project settings for 'stairs/ladders', and have that default to overlap with the player, but not to block it.
Here is a tutorial that was provided to help you achieve the goal you have in mind.
answered Apr 02 '15 at 01:49 PM
Seems like a trigger box. Would do the trick.
Then Branch: If X input true walk upstairs. If X input false walk straight.
answered Jan 29 '16 at 11:44 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here