This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-21 10:14:13

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Hook Champ Physics

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?


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#2 2011-04-22 23:54:39

TVflea
Scratcher
Registered: 2010-08-14
Posts: 1000+

Re: Hook Champ Physics

cool, sunny.i don't understand it.


-iNetMaster-'s not dead, get used to it. ! big_smile .
http://is.gd/YrQzXX

Offline

 

#3 2011-04-23 12:28:01

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Hook Champ Physics

TVflea wrote:

cool, sunny.i don't understand it.

Good to know.


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#4 2011-05-05 14:17:47

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Hook Champ Physics

Bump


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#5 2011-05-06 13:39:08

Hadlab
Scratcher
Registered: 2011-03-18
Posts: 100+

Re: Hook Champ Physics

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


Need a hand? Look no further! Just drop me a comment and I'll be delighted to help!   smile

Offline

 

#6 2011-05-06 13:53:56

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Hook Champ Physics

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 :)


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#7 2011-05-06 14:17:50

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Hook Champ Physics

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)


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#8 2011-06-03 19:33:27

c3poab
Scratcher
Registered: 2008-10-17
Posts: 1

Re: Hook Champ Physics

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

 

#9 2011-06-03 23:53:59

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Hook Champ Physics

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.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

Board footer