post your simplest stairway implementation(using platform)

New releases and general discussions.

Post » Sat Jul 03, 2010 8:34 pm

chatting in chat with some contructors, and it's universally agreed that stairs are kinda hard to make in construct
three requirements:
1)stairs that you can either walk by, or walk up or down if you choose.
2)and stairs that can be walked up by one platformer, while walked through by another platformer
3)it's best if the solution doesn't require overriding the default platform behavior temporarily.

admittedly, I'd like a simple solution for my current project, but also, this could help anyone else who's gone through the various steps to try and implement stairs. (get it? steps?)

anyway, this is the simplest solution I could come up with without overriding default platform behavior. and it's not as simple as I'd like. I feel there's probably a simpler way.
[url:33d7ccf8]http://dl.dropbox.com/u/1013446/stairyouintheeye.cap[/url:33d7ccf8]
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Jul 04, 2010 6:37 am

Well, I tried my hand at it and found it to be somewhat tricky. I was able to do #1 and #3, but not #2. For that I personally would have to make my own platformer movement with events (would be less hacky).

Here it is:[url:26gt6uhm]http://dl.dropbox.com/u/5426011/examples/stairsExample.cap[/url:26gt6uhm]
The events are not really much simpler, but the in editor setup is easier.
-cheers
B
79
S
24
G
54
Posts: 4,746
Reputation: 40,755

Post » Wed Jul 07, 2010 10:46 am

Wow that's a great job there, it did everything I expected it to do.

I haven't done stairs in Construct yet. But in some of my past projects I always had the stairs graphic tilted at a bit of a perspective angle. That way I could just throw down a sloped collision block and the player would run up them normally. It's just an optical illusion, a cheat :P but it looks good and can save time unless you really do need perfect stairs.
B
1
G
2
Posts: 2
Reputation: 629

Post » Wed Jul 07, 2010 2:03 pm

Just gave it a shot... and yeah, like R0J0hound said, I would probably want to make my own platform movement for something like this.
Would be much easier if we could set collisions with objects on a per-sprite basis at runtime.
B
4
S
1
G
5
Posts: 98
Reputation: 1,648

Post » Fri Jul 16, 2010 7:15 pm

This would be much simpler if Construct had Layer collision.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Fri Jul 16, 2010 8:23 pm

well, I solved the problem like this:
[url:3qlpa94p]http://www.scirra.com/forum/viewtopic.php?f=7&t=6775[/url:3qlpa94p]

super simple, but yeah, disabling collision per layer would be good too
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Fri Jul 16, 2010 8:52 pm

[quote="Anslem":1htlferu]Wow that's a great job there, it did everything I expected it to do.

I haven't done stairs in Construct yet. But in some of my past projects I always had the stairs graphic tilted at a bit of a perspective angle. That way I could just throw down a sloped collision block and the player would run up them normally. It's just an optical illusion, a cheat :P but it looks good and can save time unless you really do need perfect stairs.[/quote:1htlferu]


I like this way best
B
4
G
2
Posts: 27
Reputation: 854


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests