Make a platform game with realistic scales

0 favourites
  • 4 posts
From the Asset Store
In 2D realistic stones are included high quality realistic 18 stones/rocks.
  • Creating a platform game with realistic scales.

    Yes, I know, this subject has been reviewed many times and yet I haven't found anything that suits me, even the platform example provided doesn't suit me at all!

    When my character is on the ladder, then, he can move right, left, up to go up the ladder and down to go down.

    Ok, well, that's easy, you might say, "platform" behavior and possibly "8-directions", but when the player touches the ladder, we disable "platform" behavior and enable "8-directions", and vice versa, when the player is no longer in collision with the ladder, we enable "platform" behavior and disable "8-directions"!

    Well, yes, but no!

    When you jump to climb the ladder if it's high up, as is my case here, when you deactivate the "platform" behavior, it will retain this jump, and when you no longer touch the ladder, it will resume its jump.

    Well, it's not that complicated, you'll tell me: when the player touches the ladder, the jump force is set to 0, and conversely, when the player no longer collides with the ladder, the jump force is reset to what it was before!

    Well yes, but no!

    No change at all!

    Well then, we'll just set gravity to 0 when the player touches the ladder, and put it back to what it was before when he no longer touches it!

    Well yes, but no!

    The player will gradually fall off the ladder, and you won't be able to jump off it!

    And with conditions if you press up, down, left, right?

    Surely you could do it, but then you'd have to disable the default behavior...

    A ladder behavior wouldn't be so bad, would it? ^^

    There's no point, you can already do it, you'll tell me!

    In short... I'm looking, but haven't found it yet, so it's not as simple as you'd expect!

  • When you jump to climb the ladder if it's high up, as is my case here, when you deactivate the "platform" behavior, it will retain this jump, and when you no longer touch the ladder, it will resume its jump.

    When you re-enable Platform behavior, set Velocity Y to 0.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've never understood why there isn't a dedicated behavior

  • > When you jump to climb the ladder if it's high up, as is my case here, when you deactivate the "platform" behavior, it will retain this jump, and when you no longer touch the ladder, it will resume its jump.

    When you re-enable Platform behavior, set Velocity Y to 0.

    dop2000 Ah thank you so much for this tip, really.

    I now only use the platform behavior.

    But as a result, when my character is at the top of the platform, he hops around a bit, which is annoying!

    I'd also like to be able to jump if I want to when the character is at the top of the ladder!

    UltraLion, yes because it's very useful, there's an example but it's not necessarily suitable for everyone, plus you can't jump with the character in their example whereas I can!

    And there was no topic dedicated to this with the right keywords, so it will be useful for others.

    I'm posting my example here for people to see:

    drive.google.com/file/d/1h6MNhcgctVpl8N0ozyWai7HL0wCSFZlA/view

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