Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / bounce in air effect

Author
Message
Morloc
22
Years of Service
User Offline
Joined: 21st Mar 2004
Location: UK
Posted: 1st May 2004 19:10
Im trying to get a bouncing ball effect ie like the keepy uppy games
ie ball goes up in air and back down in a parabolic curve.

does anyone know of a good equation that would do this. obviously it would effect x and y but also have another variable to decide on the height of the curve and distance it travels.

any help welcome

Morly

Morloc
Morloc
22
Years of Service
User Offline
Joined: 21st Mar 2004
Location: UK
Posted: 3rd May 2004 02:03
still havent had any luck with this. All im after is an equation that will plot an arc.

anyone?

Morloc
Flashing Blade
23
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 4th May 2004 18:58 Edited at: 4th May 2004 19:01
try subtracting a gravity constant from your yvelocity every loop.

Is this like you want?




Zero Blitzt
22
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 5th May 2004 02:23
use the SIN command. I don't really know what the equation is, but it involves SIN.


GameXaero forums - www.t4e0.4cybiko.com
Morloc
22
Years of Service
User Offline
Joined: 21st Mar 2004
Location: UK
Posted: 5th May 2004 02:46
Ive managed to come up with 2 equations that work really well allowing gravity, xvelocity and y velocity to be modified to create lots of different arcs

thanks anyway

morly

Morloc
Francesco
22
Years of Service
User Offline
Joined: 11th Apr 2004
Location: Milan, Italy
Posted: 9th May 2004 01:00
Could you please post these equations you made?
Please?
Thanks.

Non si inalberi mica con me, sa!
Lei è venuto qui, lei ha il tombino intasato!
Siamo uno spurgo serio, noi!

Login to post a reply

Server time is: 2026-06-09 13:55:49
Your offset time is: 2026-06-09 13:55:49