Computer Science Canada Mouse game help |
Author: | R2543 [ Mon Dec 29, 2008 7:09 pm ] | ||||
Post subject: | Mouse game help | ||||
You know those free games on the interent where you have to dodge stuff with your mouse on the screen? well thats what i need to make. Problem is n my code the detection only happens AFTER the program executes, which means if i put any delays in wont detect a collision until the procedure has finished executing.
thats the game part of my game. yeah i know i used a whatdotcolour detection but I couldn't think of anything else ![]() I'm quite new to these forums so i dont know much about the tools. Im supposed to make multiple objects come but i just need to test 1 for now. Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | Amit [ Tue Dec 30, 2008 12:59 am ] |
Post subject: | Re: Mouse game help |
Maybe you should post the rest of your code, becuase what you've given us doesn't run. It says that the "title" procedure is missing. |
Author: | Tony [ Tue Dec 30, 2008 2:20 am ] |
Post subject: | RE:Mouse game help |
if you don't put any delays into procedures (having delays in procedures is usually a sign that something is going wrong), your collision will still not be checked for, until your "walls" procedure finishes it's loop. Code executes linearly, one step at a time. Think of a better way to organize your main game loop. |