Jump to content

Ladders? Ropes?


graphicgeek
 Share

Recommended Posts

Hey guys.. New to the game dev world but looking at a few frameworks. My main idea needs the ability to climb things like ladders or to jump/grab a rope. I haven't seen any examples of this but wondering if it's possible or if anyone knows where i can find a tutorial for this.

 

Thanks for any help you can offer!

 

-Freddy

Link to comment
Share on other sites

  • 5 months later...

For ladders you will basically need a sensor and when the player touches it the standard physics do not apply (e.g. no gravity). Take a look at these articles for ladders:

http://www.gamedev.net/page/resources/_/technical/game-programming/the-guide-to-implementing-2d-platformers-r2936

http://www.wildbunny.co.uk/blog/2011/12/20/how-to-make-a-2d-platform-game-part-3-ladders-and-ai/

 

For ropes it's the same principle. You will need a sensor against which to check collision in order to modify the player's state and ignore the standard physics.

Link to comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...