I'm trying to figure out exactly what the different joints do by testing, but the joints just disappear after being created.
I've set up this function to test a joint when "m" is pressed on the keyboard. I added the delay to see if anything actually happens and while the program is sleeping for that second there is a joint but it's gone afterwards. I've tried different x-y values.
function testJoints()
if shapes[1].attached = 0
if getRawLastKey() = 77
shapes[1].attached = 202
shapes[2].attached = 201
createLineJoint(1, 201, 202, getSpriteXbyOffset(201), getSpriteYbyOffset(201), getSpriteXbyOffset(202), getSpriteYbyOffset(202), 0)
print("attached!")
sync()
sleep(1000)
endIf
endIf
endFunction
My hovercraft is full of eels