Slippery platform collisions

0 favourites
  • 6 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Hi,

    I'm quite new to Construct 2, but unless I'm missing something (which it could well be!) it seems that the platform behaviour doesn't feature slippery slopes:

    PlatformTest.capx

    ...and it is quite a bummer if your game isn't based on perfectly squared platforms, something which I tend to avoid with my visual styles.

    Any suggestions on what is the most efficient way to have the player slide on certain surfaces depending on the angle, instead of having it steadily climb even on the tiniest pixel?

    Cheers,

    ele

  • Hello EleBriscoe,

    This is a hard thing to workaround, and is an old issue.

    After a patch, Ashley did a code behavior where depending on the slope angle, the player could drop or stand in.

    And wanting slip over the surface I did a detector anchored to the player, where it detect the slopes angles by overlapping it (by the adjacent side of the triangle formed between the detector and the slope), if it is bigger than a certain angle, this detector will touch it and will push the player to the other side by 1 pixel every desired timelapse.

    You can see the detector alive by playing my game on the signature, or looking this videos:

    [tube]http://www.youtube.com/watch?v=pJFQftlOdH0[/tube]

  • Sorry for the late reply!

    I already tried with detectors, buy I can't solve the jittery collision while pushing on the walls even when using one pixel wide detectors (see the updated .capx in the first post).

    Is in there something I could do better?

  • (bump)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The jittery movement is caused be a small "fall" taking place (courtesy of the platform behaviour) after you set the X position to +1.

    I found it easiest to actually use the platform behaviour itself. Find the angle of the platform beneath the player, and, based on that, simulate movement left or right.

    Here's an example I made recently for someone else, based on the platform template. I've since applied it to my own current project and it needs a little tweaking, but the basic functions work fine.

  • ...simple and elegant! Thank you so much! :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)