View Full Version : Preventing mouse clicks in a shooting game (ie reloading)
flatline damnation
03-21-2002, 07:43 AM
Or if I want to adjust a rate of fire so if I "shoot", I have to wait a certain amount of time before I can "shoot" again...
Can anyone explain how to?
eyezberg
03-21-2002, 12:02 PM
if you want just one shot active at a time, check it's _y (supposing the "bullet"-clip goes upwards) and set a falg to false as long as the _y has not reached 0 (top of scene), then set it to true , and before you allow for shoot, check the flag variables value to see if true (= new shoot) or false (= not yet).
Does that answer your question?
flatline damnation
03-21-2002, 01:38 PM
I'm not sure you understood what I ment exactly...
Lets say it's a FPS (First Person Shooter) game and my weapon is a shotgun... Now after every shot There's this @#%$ animation. How can I prevent the user from shooting while the animation plays?
flatline damnation
03-21-2002, 01:39 PM
Dam n... EZboard censored that word...
I ment c ock.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.