Sign in to follow this  
graphicgeek

Ladders? Ropes?

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.