PDA

View Full Version : Flash physics



dangerskew
April 26th, 2004, 06:37 PM
Can anyone tell me how to make a game like the ones with the cannons that you have a velocity and rotation? I tried just to make a simple ball that follows the path of a parabola, using the equation y(I'm assuming this is the mc's y) = ax^2(Assuming mc's x) + bx + c. It's not working.

pom
April 27th, 2004, 10:02 AM
The concept of gravity explained here might help: http://www.kirupa.com/developer/actionscript/gravity.htm

senocular
April 27th, 2004, 10:57 AM
this might help. It has what I think you were describing. It doesnt use the same gravity physics as the link Ilyas da Pom posted (this is simpler), but sometimes you dont need to be so complicated to get the job done.

searchcannon
searchphysics
searchtrajectory
searcharch
searchgun

dangerskew
April 27th, 2004, 06:16 PM
Thanks. I'm not that good at this, so it still kind of confuses me. I'll just keep until I'm older and understand it.:}

gobbles
June 11th, 2004, 04:19 PM
Hi I been reading the tutorial, I was wondering how I would make the ball react to walls and floors, like seen a million times before but still new to me, or how to give the gravity an angle (when hitting a wall)or to let the speed you move the mouse letting go of the ball decide how fast it will travel?

sorry know thats a lot, but I understand the code in the tutorial but can't find the next step to getting a real "interactive " ball ..