How do I create ladders?

0 favourites
  • 5 posts
From the Asset Store
Awardkit
$5 USD
Create custom awards and achievement or use the many templates and create your own.
  • Hello Scirra Community,

    this is my first time posting here so I'm a bit unsure if I posted this in the right place.

    So I tried my hand on creating ladders and got something to work using groups and switching between 8dir movement and platform movement.

    Some information about the setup:

    The ladder Sprite has a jumpthru behavior and consists of 3 different animations. The main "ladder", the 2nd is the "ladderTop" which also includes an imagePoint called "topMarker" and the 3rd is the "ground" (which is only used for detection purposes and would be invisible later on. The jumpthru is only enabled for the "ladderTop" so you can walk around on top of the ladder.

    The ladder pieces have an instance variable called objName, which I use to check which part of the ladder the character is on.

    The character Sprite also has an imagePoint called "topMarker" which is used to compare where the top part of the ladder is. The reason why I used image Points is to later put them where the hands of the character are. I want to have the animation of the character pulling himself up at the top end of the ladder when his hand reaches the end. (Hope that made somewhat sense)

    Now I would like to know if you have better ideas how to go about creating ladders or in case you like mine tell me where I might be able to improve the code?

    Here is the capx: [attachment=0:lpz37zob][/attachment:lpz37zob]

    Thank you for your time~

  • there's a bunch tutorials about ladders on FAQ

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Woo! I had to find the FAQ. Here's a link for future me's looking for ladder help: (doh, URL removed: /forum/viewtopic.php?t=63588&start=0)

  • It is much more complicated, but consider making the steps of the ladder as single Solid objects, and let the player "jump" through them if he's under.

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