hello, I need to climb a rectangular platform, which occupies the entire width of the screen, I need to climb up from the ends, ie I climb on one side and while the other side remains fixed, just rotary, it occurs to someone who could do it, thanks
Raise a rectangular platform
Jul 22 2018 07:37 AM
The easiest way I can think to make a mechanic like the 'board' in teeter is to:
First, detect if a touch if left or right of the x-axis center on the 'board'.
Second, if the touch is left of center create a temporary pivot join in the vertical center near the right edge of the board. If the touch is right of center, do the opposite.
Third, attach a touch joint at the touch point and allow the user to drag the board around, pivoting on the other joint.
Fourth, when the touch is released, remove both joints.
Finally, to make this work the body may need to be kinematic, but then switched to dynamic during the touch/drag, and put back to kinematic on release.
Note: I think you want to do this on your own, and I think this steps I provided will work. However, if you just want a solution and/or can't get there on your own, I offer a service for this kind of help: https://forums.coronalabs.com/topic/69420-hire-a-hitman-problem-solver-is-back/
Edited by roaminggamer, 22 July 2018 - 09:44 AM.