- Home /
What code would I need to make you can climb
I want to make it so you can climb up thing + I want it can be like a big monster like in shadow of the colossus. How would I go about that, and what code would I need?
Any help would mean a lot.
No one can give you a general answer to that problem. The code involved could be very lengthy and difficult depending on how much physical realism you want. Can you code a 2d platformer character from scratch that can walk, run, jump and fall? If so, you can make it climb walls, and go from there. If not, then start simpler.
Answer by emiller100 · Jul 17, 2013 at 10:31 PM
Typically you would use triggers in the world to tell the player when to go into "climbing mode". You could have a ladder object with a trigger on it. When the player collides with the trigger you would need to tell the animation to play climbing animations, disable gravity and constrain the movement to up and down. You then need a way to know when you exit the ladder to go back to a normal movement mode. Different triggers could be used for this as well. Hopefully his will point you the right direction for a possible system and aid you in your research.
Your answer
Follow this Question
Related Questions
How to make climbable zone more than one? 0 Answers
Issues with Apply Root Motion for Climbing up 0 Answers
climbing in oculus touch 0 Answers
Character that Climbs Everything Including On Ceiling 1 Answer
2d-platformer climb 2 Answers