Hi all, I'm going around in circles with this!
I've got a machine gun that should fire 50rounds a second with the following code and Global variable mgun.
+ Keyboard: Space is down
+ System: position = 3
+ System: mgun ≥ 0
-> huey: Spawn bulletleft on layer 2 (image point "gunsleft")
-> bulletleft: Set Bullet angle of motion to huey.Angle-180 degrees
-> bulletleft: Set Bullet Enabled
----+ System: Every 1.0 seconds
-----> System: Subtract 50 from mgun
----+ System: Trigger once
-----> Audio: Play guns.webm looping at volume -5 dB (tag "guns")
When the mgun Global variable is = to 0 and the spacebar is still down the guns still fire, if the spacebar is released then pressed again it won't fire.
I've tried setting an every tick check putting the above in a group and when the mgun variable is = to 0 then set group to disabled but still the same, hopefully this makes sense, just can't think how else to get it to work.
Thanks for any help