Posted By
|
Message
|
Battenburg
Registered 24/04/2009
Points 13
|
5th July, 2009 at 23:17:56 -
For a game I'm trying to make I'm rather perplexed on to how to code in some good ball physics so when after they are shot from the cannon they will bounce and eventually come to a rest. Atm to cut on time I used the pinball movement since it is practically made, however I can't seem to get the balls to rest. They will continue to bounce at minute amounts. Any ideas on how I can do this? Also on how to get the balls to roll, since pinball movements only allow for them to bounce.
The only way I can think of it to create sloped tile sets that add to it x movements and to stop when a ball is in contact with two tile sets (the bottom of two slopes). Then to move again if hit by another ball.
Any ideas, suggestions or point towards a tutorial or good reference material?
n/a
|
DMT
Registered 18/06/2009
Points 150
|
6th July, 2009 at 01:56:49 -
Physics extension? Just a thought! Dynamite made a good tutorial for it.
I am no longer not a taco.
|
MBK
Registered 07/06/2007
Points 1578
|
6th July, 2009 at 02:53:09 -
Think of the bounce as a jump that automatically happens. You'll need to make a jumping movement to start with.
Once you have that, you'll need an extra alterable value or counter that gets added to each time the ball collides with the ground.
Then subtract by that value from the height range (this will be done differently depending upon the jump style you use).
Then for the rolling, once that alterable value reaches the amount needed to be equal with the ground (zero jump height range), set the ball to its rolling animation and implement the deceleration code to slow it down over time until it comes to a complete stop.
Hope that helped some.
Click Me! http://www.create-games.com/project.asp?view=main&id=1444
http://www.mediafire.com/download.php?aoo1dnnlq5i
Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?
|
Battenburg
Registered 24/04/2009
Points 13
|
6th July, 2009 at 13:20:57 -
Thanks for the help both of you. I'll tinker around with these new ideas but also;
Originally Posted by DMTPhysics extension? Just a thought! Dynamite made a good tutorial for it.
Where is it? I did a search but couldn't find it anywhere. Did find lots of lovely other tut's though. I don't suppose you could drop me a link?
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
6th July, 2009 at 15:16:00 -
I second DMT's suggestion.
You can download the extension here: http://www.phizix.tk/
You could use a regular 360 degree custom movement engine. The bouncing part is pretty easy to do, but making a ball that rolls down slopes properly is going to be much more difficult.
n/a
|
DMT
Registered 18/06/2009
Points 150
|
6th July, 2009 at 16:20:26 -
http://www.clickteam.com/website/usa/tutorials/
It's a video tutorial.
I am no longer not a taco.
|
Battenburg
Registered 24/04/2009
Points 13
|
6th July, 2009 at 21:09:19 -
I downloaded the Physics extension.... but it doesn't want to display itself. Ideas anyone?
n/a
|
OMC What a goofball
Registered 21/05/2007
Points 3516
|
6th July, 2009 at 21:23:04 -
Make sure you've copied both the edit time and runtime versions into their respective folders. There are two MFX's that you need to copy.
|
|
|