Computer Science Canada

mouse using graphics

Author:  TrAnCeIn4LiFe [ Fri Apr 09, 2004 12:08 pm ]
Post subject:  mouse using graphics

hey pps as u can see i'm quite new to this site, and also to turing, but anywya i'm working ona game something like space invadors but i'm always running into a problem i got a screen created like a normal computer game with options there is 4 of them i mean they work out etc.. but somethign is messed up and sometimes it does not work so anybody know how i can fix that mouse junk. check the attached file


Author:  Delos [ Fri Apr 09, 2004 1:28 pm ]
Post subject: 

You're mouseXY detection is essentially mouseX detection. Add some more clauses to your ifs.

Also, as soon as a button is pressed, exit your loop, then run a corresponding procedure. It will make things easier on you and the CPU.

put "Enter name"
get name

put "Enter name"
get name

If all else fails, there's always GUI buttons...hehehe.