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.

Newcomers DBPro Corner / formula for acceleration

Author
Message
Xytor
20
Years of Service
User Offline
Joined: 1st Sep 2004
Location: nyc
Posted: 7th Sep 2004 21:39
im trying to think of a mathematical formula where the numbers start out small, but become bigger faster and faster (like acceleration)
but cant think of one.

my site http://strike.insurrection-games.com
DONT try to email me, it will go to junk. to contact me, simply message me in aim or msn. Msn: Borman500@msn.com Aim: Xytor500
GameKit
21
Years of Service
User Offline
Joined: 6th Mar 2003
Location: USA, Staring Blankly at a Computer
Posted: 7th Sep 2004 23:38 Edited at: 7th Sep 2004 23:39
Something Like This?

Do
If upkey()=1 Then Speed#=Speed#+Acc#
Speed#=Speed#/1.03
Print Speed#
Loop

Or do you want the rate of acceleration to increase also?
Do
If upkey()=1 Then Speed#=Speed#+(Acc#*(Speed#/50))
Speed#=Speed#/1.03
Print Speed#
Loop

Well... I hope I helped...

The computer isn't an addiction, its more of a mental and social dependancy.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 8th Sep 2004 00:22 Edited at: 8th Sep 2004 00:23
Here is constant acceleration:



Here is variable acceleration:



Get it? Got it? Good

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]
Xytor
20
Years of Service
User Offline
Joined: 1st Sep 2004
Location: nyc
Posted: 8th Sep 2004 02:36
thanx guys!

my site http://strike.insurrection-games.com
DONT try to email me, it will go to junk. to contact me, simply message me in aim or msn. Msn: Borman500@msn.com Aim: Xytor500

Login to post a reply

Server time is: 2024-11-27 08:49:20
Your offset time is: 2024-11-27 08:49:20