PDA

View Full Version : Ball and ramp


felipe
06-29-2007, 04:38 PM
I am trying to make a toy/game where you draw a ramp and a ball follows it.
the ramp drawing works, but the ball does not, mainly because I need a better collision detection and velocity calculatng system. Does anybody have any ideas? thank you

whizkid1990
06-30-2007, 08:45 PM
set a condition where if (collide=true){speed++;} then set it for the ramp you draw.
velocity calculating system: if it works on movieclips, it should work on other things too.

newblack
07-05-2007, 03:22 AM
ok, so eliminate the ramp from the equation- what about the ball doesn't work as you'd like?

orange gold
07-06-2007, 07:13 AM
here is the fla file for line rider u can mess around with the code and see if that helps
download it at http://albert.teleinc.com/linerider.zip
"im uploading it now so if the link doesnt work try again in a few minuets

whizkid1990
07-06-2007, 02:00 PM
Yea but you haven't actually got anything running in the first place.