Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 mouse using graphics
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
TrAnCeIn4LiFe




PostPosted: 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

thx



project.zip
 Description:

Download
 Filename:  project.zip
 Filesize:  99.35 KB
 Downloaded:  231 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Fri Apr 09, 2004 1:28 pm   Post subject: (No 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.

note:
put "Enter name"
View.Update
get name

not
put "Enter name"
get name
View.Update

If all else fails, there's always GUI buttons...hehehe.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: