I'm attempting to make a remake of an iPhone platformer called Hook Champ, but I can't get the physics right! Here's a video to show you what I mean and here's what I've got so far.
Help, anyone?
Offline
I can help probably. I have something which would make him move with a moving platform if he is standing on it, if that helps. Just message one of my projects for whatever you want
Offline
Hadlab wrote:
I can help probably. I have something which would make him move with a moving platform if he is standing on it, if that helps. Just message one of my projects for whatever you want :cool:
Er I was looking more for the rope physics. But thanks for the offer :)
Offline
Check out the physics I used in Night Ninja. They seem to be what you want.
Click here.
The stuff you're looking for should be in the player, top part of the script.
Last edited by AtomicBawm3 (2011-05-06 14:20:37)
Offline
What I can say to help is to add a rotation velocity and anchor where you click (Save the x and y ofmouse when you click). For the rotation velocity you can use this to get the x/y position for where he needs to be while swinging:
x sin(direction) * Distance + Origin X
y cos(direction) * Distance + Origin Y.
To make a swinging effect do:
change Rotation Velocity by sin( direction )
For the letting go velocity you might want to look up a project called pendulo.
Last edited by c3poab (2011-06-03 19:36:41)
Offline
c3poab wrote:
What I can say to help is to add a rotation velocity and anchor where you click (Save the x and y ofmouse when you click). For the rotation velocity you can use this to get the x/y position for where he needs to be while swinging:
x sin(direction) * Distance + Origin X
y cos(direction) * Distance + Origin Y.
To make a swinging effect do:
change Rotation Velocity by sin( direction )
For the letting go velocity you might want to look up a project called pendulo.
That's actually what's in my project. Great minds think alike.
Offline