x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

Product Version: Not Selected
Tags:
stairs.png (34.4 kB)
more ▼

asked Mar 25 '15 at 04:04 PM in Blueprint Scripting

avatar image

LcnAng
0 1 2 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Hey LcnAng,

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.

Cheers!

Linear Stairs

linearstair.jpg (69.7 kB)
more ▼

answered Mar 25 '15 at 06:01 PM

avatar image LcnAng Mar 26 '15 at 04:13 AM

Thanks for the reply but not what I wanted. I want that when the character is positioned at the beginning of the stairs you can climb or go another way . When pressing the Up and Left or right key , the character up depending on the position of the stairs ( if the stair is on the right or the left) . Same for down the stairs , but in this case would Down key and pressing the right or left position

Perhaps the image you understand what I want to explain . My English is not very good .

alt text

stair 2.png (41.2 kB)
avatar image Samantha Sutton ♦♦ STAFF Mar 31 '15 at 06:55 PM

Hey LcnAng,

While paper 2D is not my specialization, I have investigated this request for a couple of days now without any resolution. With that being said, I have submitted a report to one of our developers for additional insight on this feature on how to walk up the stairs, or down the hallway in paper 2D. Hopefully I'll have a response shortly.

Thank you!

avatar image LcnAng Apr 01 '15 at 01:32 PM

Thanks , this will be very helpful.

avatar image skkhan Apr 21 '17 at 02:01 PM

brother did you got the question figured out ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey LcnAng,

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.

Thank you!

more ▼

answered Apr 02 '15 at 01:49 PM

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Seems like a trigger box. Would do the trick.

Then Branch: If X input true walk upstairs. If X input false walk straight.

more ▼

answered Jan 29 '16 at 11:44 PM

avatar image

Mr. Moyo
69 3 6 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question