Platform behavior and 'step tolerance'

Discussion and feedback on Construct 2

Post » Tue Apr 30, 2013 11:37 pm

Hey all,

Have a play of this quick project I put together.

As you can see, it's just the platform project template (although I adjusted the character's max speed and acceleration) with platforms arranged in 'steps'. Each step is 1 pixel taller than the previous step.

You may notice some peculiar behavior if you try to run up the steps. In my experience, with a running start, the player will always be stopped by the second-to-last step. You'll also notice that running into the staircase without a running start will eventually stop you short. As such, I'm guessing that the player's ability to 'jump steps' is tied to its x velocity.

While this behavior may be useful for most games, I feel that direct control of 'step-hopping' ability could be useful in some instances. For example, A game I'm working on has lots of big, misshapen tiles that have to be lined up manually and as such there will be 'steps' around the perimeter of each tile where the lining-up isn't perfect.

Does anyone agree that direct control of this behavior would be useful? @Ashley is this really a coded part of the Platformer behavior, or just a weird side effect?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed May 01, 2013 1:26 am

It looks like a weird side effect. In theory the platform behavior will see anything steeper than a 45 degree gradient as a wall, so a 2px step ought to stop it... but the platform behavior is really complicated and has a few hard-coded tolerances (e.g. try pushing out for 30px, otherwise backtrack and try something else...). I guess it's a bug, if you post the .capx for this in the bugs forum I'll take a closer look.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests