Is there a way to have an actor slide down a rope?
I'm using Darren's jetpack template which is an endless runner, and at one point, I want the hero to slide down an angled rope so that basically, the hero is "stuck" to the rope for the entire length of it and is released when he gets to the end. Anyone know a good way to do that?
Comments
1) the rope - simply a graphical actor with no rules .
2) your sliding actor , use the interpolate behavior to interpolate its X and Y position along the rope ,
Then have a rule that triggers once the sliding actor have reached its destination (use the X and Y values to check it) , and in that rule use another interpolate to imitate that he is falling down .
Hope it will help you get started.
Roy.
Done a quick video to show you the rules but basically when hero hits lift A it constrains to it and A moves towards B.
Hope this helps.
Darren.
GS Templates & Tools + Xmas Bundles
I just bought the template. Seemed like there was some useful bits in there.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
One way to work this out would be to make the rope and hero as as frictionless as possible. Set the rope's density to very high, friction to 0, restitution to 0, fixed rotation to 'on', moveable to 'off'. Set the hero's density to very low, friction to 0, restitution to 0, fixed rotation to 'off', moveable to 'on', and collision shape to circle.
Also, put a collide behavior in the Hero. (Collide with rope.)
Using the above settings will make the hero and rope as slick as ice. That might help.
Other then that, you might want to get rid of the accelerate behavior and use change velocity instead.
Hope that helps,
RThurman