[Solved] Climbing a ladder

0 favourites
From the Asset Store
You should help Choli to climb the mountain and reach its peak
  • Haha, I wasn't really paying attention on that one I guess. <img src="smileys/smiley9.gif" border="0" align="middle" />

    db.tt/fmKVa6a8

    Well, it took a bit of doing but I finally got everything working properly. It's essentially the same thing as before, just set up differently -- mostly straightforward stuff. I'm pretty tired myself, so I'll spare the giant explanation unless you want one tomorrow. <img src="smileys/smiley17.gif" border="0" align="middle" />

    EDIT: Forgot the link! See? I AM tired. <img src="smileys/smiley29.gif" border="0" align="middle" />

  • That's everything sorted now then, thank you for your time!!!

  • Glad to help! Good luck working on the rest of your game. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Thanks a lot guys, i was trying to this, but i can't figure it out how. i'm starting and this was very helpfull, thanks again

  • This is fun, I never needed this. But seeing now... I think in some ways to use that. Thank you o/

  • I found the same problem with ladder and this is very helpful

    Thanks guys

  • Everyone's examples are dead links. Anyone have updated ones?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey guys, I just realized we're all overcomplicating this. You don't need to spawn extra solid blocks, then remove them etc.

    I've made a terreria clone where you can place ladders, each of them being a 32*32 block. You can place them in a vertical or horizontal series to make long ladders. All you need to do is give the ladder sprite a jump-through behaviour. This will cause the player to walk on the top of the ladder, instead of falling back down once you've climbed to the top. Of course it also allows the player to climb upwards through it. Then all you need to do is add an event to use platform down jump-through behaviour when the player presses down (this allows descent from the top of the ladder). It also solves the jumping from a distance problem. If you fall on the ladder(s) from above you land on it as a solid. Come at it from the side or below, and you climb.

    Much simpler to implement this way, and none of the nasty bugs with the previous method.    <img src="smileys/smiley1.gif" border="0" align="middle" />

    <img src="http://img687.imageshack.us/img687/826/ladderfixed2.jpg" border="0" />

    <img src="http://img521.imageshack.us/img521/6100/screenieki.jpg" border="0" />

    ** updated to include proper animation support, and one bug fix

    *all source graphics copyright their respective creators, only used as placeholder

  • What kind of value is the "climbSpeed" ? Only see it being reffered to 2 times. Sorry I'm still learning and trying to implement this into my platformer..!

  • What kind of value is the "climbSpeed" ? Only see it being reffered to 2 times. Sorry I'm still learning and trying to implement this into my platformer..!

    the "climbSpeed" is used to see how fast you rise up when climbing (Self.Y - climbSpeed = we rise of climb speed), and the "*dt" thingy is for frame-rate independancy

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