View Full Version : Cricket ball movement??
arundracula
January 3rd, 2008, 12:48 PM
I am on a cricket game.
But I don't know how to move the ball around the ground.
View the image, the line shows the ball movement with bounce.
Can you help me?
http://img50.imageshack.us/img50/5039/ssswj1.jpg (http://imageshack.us)
NiñoScript
January 3rd, 2008, 03:14 PM
give this idea a try:
instead of moving the ball this way:
ball._x+=Mathematic_function1(angle)*speed;
ball._y+=Mathematic_function2(angle)*speed;
do it this way:
ball.x+=Mathematic_function1(angle)*speed;
ball.y+=Mathematic_function2(angle)*speed;
ball.z=Mathematic_stuff_for_the_bouncing_as_it_wer e_a_platform_game();
and then
ball._x=ball.x
ball._y=ball.y+ball.z
notice that that is just the general idea, maybe you can get it to work, or find another way to do it :)
anyway, maybe later i'll be in a computer with flash, and i could get an example of my idea working, it's like those formulas to show isometric stuff in 2D, shouldn't be hard.... i think
arundracula
January 4th, 2008, 12:39 PM
ok thank you very much
but I am low in math formulas....
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.