PDA

View Full Version : Ball dangling on string



ymd02
July 29th, 2009, 01:12 PM
Hey all,
I'm working on a flash site and want to have it start off with a ball attached to a string dropping from the top of the screen. I've gotten gravity and bouncing balls and the physic behind those down thanks in large part to this great tutorial: http://www.spoono.com/flash/tutorials/tutorial.php?url=gravity

I have no clue where to start though as far as having an elastic string attached on one end to a fixed point at the top of the movieclip and on the other end to the ball. Does anybody have any tips, ideas, places to start, etc?

Thanks!
ymd

flyingmonkey456
July 30th, 2009, 12:08 AM
http://www.friendsofed.com/download.html?isbn=1590595181

that's a downloadable book, read chapter 8.

http://www.republicofcode.com/tutorials/flash/video/bungee_ball.php

this one is pretty good, too. it shows you how to make the ball snap back to the middle of the stage when you let it go. you would have to rework it a little if you want the ball to be able to dangle, but it should definitely help (-: