Hi guys, I made a fun little game in Blitz3D where the user has to guess my favorite color by pressing a number key. Once the number has been pressed that specific color will "disappear" off the screen and the user can continue guessing until he/she is right. Once the user chooses the correct answer, the program is supposed to go to a custom function I made, userWon(), clear the screen, display some text, and wait. For whatever reason, it seems to blast through the function and just quit the entire program. I've gone through everything multiple times with no luck. However, it does kind of work if you step through with the debugger. I'd appreciate any suggestions!
Link to file: http://mrhtml16.ange...uessTheColor.bb
EDIT: Problem fixed. I replaced WaitKey with While not KeyHit(1) : Wend. Not sure why WaitKey wasn't working
Blit3D - Function Problem?
No replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users