@RyanPridgeon:
RyanPridgeon wrote:How come the x force reads 0 when you are decelerating horizontally?
I know technically friction is a force and should probably be considered when calculating "force", but the "force" you see being displayed in my properties list is technically only the net applied force (ie. when you press a key you apply a force as well as gravity which is constantly applying force).
@NetWatcher:
Netwatcher wrote:Liked the fact that the gravity isn't 10 or 9.8... it's exactly 9.81 :D ( I hate approximations)
I tried to make it as accurate as possible.
Netwatcher wrote:you made the points in the helicopter game to be added every few milliseconds, when I hit a button the program is "delayed" and I get the point only after a while... you should put it on a different thread or average the FPS (ofc you're not gonna do it NOW, I'm just saying...).
If you only move along one axis (ie. bouncing vertically) your points go up VERY slow on purpose. Otherwise it's based on velocity (more velocity = more points). Also take note that the score variable is a float being cast to an int before being displayed, so if it's going up slowly enough the number you see won't change until it gets far enough to be rounded up instead of down.
Netwatcher wrote:And the keystroke checking; you did a switch statement or else if... so I can't press up & left, and if I do I will just fall down because the up key isn't checked.(the NE, SE, SW and NW keys doesn't work right for some reason)
Again, in the game this was completely on purpose to add to the difficulty level. You can only apply force NW, N, or NE in the game and I'm not sure what you mean about keys not working?
Netwatcher wrote:and it also finds out when I press irrelevant keys (such as the "k" key or the "o" key )
What do you mean by "It finds out"?
@Everyone else:
Thank you guys for your compliments, they're much appreciated. Feel free to hack at the source, it's far from professional but I believe it's neat enough and commented well enough for you to get the basic gist of what's going on.
![Happy :)](./images/smilies/icon_smile.gif)
(Note: You may want to avoid trying to understand the block comments of debug code, most of it is irrelevant and I just never happened to delete it.)