Computer Science Canada

Timer on a Mouse click, like for a shooter

Author:  SeeknDestroy [ 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

Author:  Andy [ Sat Jan 10, 2004 9:14 pm ]
Post subject: 

do u want the whatdotcolor version or the everyday joe version

Author:  SeeknDestroy [ Sat Jan 10, 2004 9:31 pm ]
Post subject: 

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

Author:  Tony [ Sat Jan 10, 2004 10:38 pm ]
Post 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

Author:  SeeknDestroy [ Sat Jan 10, 2004 10:39 pm ]
Post 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?

Author:  SeeknDestroy [ Sat Jan 10, 2004 10:51 pm ]
Post 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!


: