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

Username:   Password: 
 RegisterRegister   
 Timer on a Mouse click, like for a shooter
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SeeknDestroy




PostPosted: Sat Jan 10, 2004 8:54 pm   Post subject: Timer on a Mouse click, like for a shooter

well, its me again, and im sry to bother u all, but can someone tell me how to put a timer for my shooter, so that if u dont shoot it, it'll go away, but if u click on it, it goes away right away, cuz rite now i have a delay for my pictures, and when u click on it, they don't go away. plz help me out, thnx
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Sat Jan 10, 2004 9:14 pm   Post subject: (No subject)

do u want the whatdotcolor version or the everyday joe version
SeeknDestroy




PostPosted: Sat Jan 10, 2004 9:31 pm   Post subject: (No subject)

well, i dont really know wat the whatdotcolor version, so could u plz give me the simpler version plz? thnx
Tony




PostPosted: Sat Jan 10, 2004 10:38 pm   Post subject: (No subject)

code:

loop
Mouse.Where
exit when got_hit = true
...
w/e
...
exit when timer>=time_allowed_to_shoot
end loop


this way you have two exits. One if you hit and another one if the time runs out
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
SeeknDestroy




PostPosted: Sat Jan 10, 2004 10:39 pm   Post subject: (No subject)

well, i dont know y, but now that ive tried to put a counter on the program to try and keep track of the score and amount of times the enemies appear, but no matter how many times u hit the enemy, the score is always 0. can someone plz help me out?
SeeknDestroy




PostPosted: Sat Jan 10, 2004 10:51 pm   Post subject: (No subject)

tony wrote:
code:

loop
Mouse.Where
exit when got_hit = true
...
w/e
...
exit when timer>=time_allowed_to_shoot
end loop


this way you have two exits. One if you hit and another one if the time runs out

o, i didn't see that, thnx a lot!
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  [ 6 Posts ]
Jump to:   


Style:  
Search: