Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Pulley System and Ropes

j-x-huang edited this page Oct 26, 2017 · 3 revisions

The pulley system consisted of individual sprites connected together using a hinge joint; this creates a rope-like effect. A script provided by the Rope 2D Asset is used, which allowed sprites (of the rope) to be generated easily and automatically connected. The planks on the end of the rope are manually connected by with hinge joint 2D; the y and z axis of the plank is fixed to make it easier for players to stand on. The 'rope' part of the pulley system has a special tag, so that players and objects won't collide with them.

The vine and snake was also made using hinge joint 2D. Each character has a special collider function with the vine, so that they can stick on it. When the character 'collides' with a vine, they will make a hinge joint with the vine. This allows characters to hang off the vine. When the character jumps, the player colliders turns off briefly, so they won't stick to the rope. The snake works exactly the same as the vine, but the joints have a low break force so that characters can't swing on it.

Clone this wiki locally