Swinging With Lengthdir_x, etc..

Necromedes

Member
I want to make the player swing from a fixed object. I have lengthdir set up and can make them rotate around it using the D and A keys but would like to add a form of physics to the whole system. i,e: Add the speed that they're travelling in a direction to when the grab onto the object and use the D and A keys to directly manipulate their momentum. Then pressing jump (space) to let them travel a greater distance through the air. You get the idea.

I thought using lengthdir and motion_add would work for this and it kind of does but the motion_add ends up making them doing circles through the air when the button is pressed.

So if anyone has a better way to code this that will do what I need, please feel free to share.

note: Avoiding using the physics mechanics of the engine.

Thanks in advance.
 
Top