-
I am going to attempt to make a racing game for my high school computer programming class, and I'm trying to simulate a RPM Tach. I need to figure out a way so that when no keys are being pressed, for the RPMs to drop gradually....
Is it possible to have a:
While KeyCode = "" RPM = RPM - 100
or something along those lines?
-
Add a timer control, and place RPM=RPM-100 in there, set interval to for instance 50 ms.
now when you press a key, add 200
-
Thanks! That's what I did though right after I posted....:p
This program is coming well, but I'm sure gonna have a hard time checking for a colision. Any suggestions?
I already have all my directions, as well as shifting, RPM and accelerating done! I'm proud of that much!
-
Depends, the most general collision detection is
collision=dx=0
how many dimensions are involved, and what shape of objects are colliding?
-
Well, I'm gonna have to keep track of weather or not they are on the road still, or if they hit a wall or something...