The code "Keyboard.SPACE" finds the position in the array (don't quote me on that, It might not be an array) "Keyboard" ("Keyboard" is from that one line "import flash.ui.Keyboard") that is defined by the string "SPACE". At that position is a number. That number is 32. So, using "Keyboard.SPACE" is the same as using "32". So, when you type Key.isDown(32) it goes to the "Key" class that was defined and runs the function "isDown" with the parameter "32". Function "isDown" then returns a boolean value (boolean means true or false). *SOOO*, *if you want to use, say, "X" instead of "SPACE"* then you would have to look up some chart on the internet (I like http://preview.tinyurl.com/3o2wmgm). So instead of using "Keyboard.X", you must use "88" (Why 88? Who knows!). "Key.isDown(88)" is the line of code for you. Don't worry, it's a mistake that just about everyone has made, and I'm no exception. Please rate up if this was helpful.
So, with the new update, the main problem is that the ball thinks it is holding still when the background stops, and then it needs to speed up with gravity and hit the ground. Maybe I'll have a very low, um, darn. I lost the word. I'll only let it fall at a certain speed and lower, and it will think that it is falling for the whole trip.
I used trigonometry that even I don't understand. I really am not qualified to explain. What I basically did, was I found the distance between the mouse and the ball, and then I pushed the ball away at 1/8 that distance in the opposite direction.
Actually, I recall reading that as long as there is an element of user interaction, the thing will pass as a game. I suppose that the circle following the mouse's position counts for that. And the "animation" is randomly created, just for the record. But I guess it still counts as an animation. However, I respect your decision to flag this. Kongregate personnel will do as they see fit. Also, this "game" (kind of) has quite a bit more that I've programmed into it, it's just that it's so full of bugs barely any of it works XD. Seriously. But they are being removed :). And I don't agree with your 1/5 stars. It deserves lower. XD. It really does. :)
Hey, do you like games? So do we — that’s what makes Kongregate the best source of free games online. We have thousands upon thousands of free online games, from both one-man indies and large studios, rated and filtered so you can play the best of the best. Read more »