Computer Science Canada Input.KeyDown Troubles |
Author: | Flashkicks [ Tue Nov 23, 2004 12:37 pm ] | ||
Post subject: | Input.KeyDown Troubles | ||
Hey ppl's. yes, it is I; Fashkicks, and I am stuck. You may find this exceedingly funny but I havent programmed in a VERY LONG time and I was told to make a proggy that just simply makes a spaceship fly around in a window and when the up arrow is pressed the velocity [speed] is increased by one and when the down arrow is pressed the velocity is decreased by one. I started and am having trouble bcuz my "array subscript is out of range" .. I hate that problem cuz I rememebr ALWAYS getting that ![]() ![]() ![]() ~Flashkicks PS: Yes I DO realize also that my View.Update is messing up- I was going to fix that once I got everything werking..
|
Author: | Delos [ Tue Nov 23, 2004 2:56 pm ] | ||
Post subject: | |||
Also, you don't need a process to run Input.KeyDown(), just incorporate it directly into your main loop. |
Author: | Flashkicks [ Wed Nov 24, 2004 1:24 pm ] |
Post subject: | |
![]() ![]() |
Author: | Flashkicks [ Fri Nov 26, 2004 1:34 pm ] |
Post subject: | |
Three days have passed and still; no one has been able to help... Is there seriously anyone out there who cant figure this out??.. Cuz if so-thats sad.. I know this should be pieces of cake for you guys... Anyhoo- Ill keep trying.. Tony, it would be nice to hear from you ![]() ~Flaskicks |
Author: | Delos [ Fri Nov 26, 2004 2:41 pm ] |
Post subject: | |
Try adding a delay() to your control process. Even better yet, trash the process and incorporate your movement into your main loop. And add a delay() to that. |