Re: Restrict Actions Breaks
I would use "Every 00"-50" rather than "Restrict actions for 00"-50." If what you're doing is limiting the frequency of shots being fired while holding a key, then it should do the same thing.
Re: Restrict Actions Breaks
Quote:
Originally Posted by pinacoladaxb
I would use "Every 00"-50" rather than "Restrict actions for 00"-50." If what you're doing is limiting the frequency of shots being fired while holding a key, then it should do the same thing.
that wouldn't be the best option, since Restrict starts timing when the event occurred, while Every starts timing when the frame starts
so if you used the Every condition and pressed the key twice near an exact seconds mark, the second set of actions would trigger almost immediately
Re: Restrict Actions Breaks
I came across the exact same bug so just changed it so that it uses a value as well, effectively creating your own 'restrict actions for'. For example using a value called RefireTimer:
* Repeat while player presses fire
+ RefireTimer = 0
= Set RefireTimer to 50 (or whatever interval you need)
= Do fire action (shoot, attack, whatever)
* RefireTimer > 0
= Subtract 1 from RefireTimer
Works exactly the same as the 'restrict action for' but eliminating the bug which changes it to always
Re: Restrict Actions Breaks
Like xyzzy said, the problem with Every is that it's based on the game's loop and not since the last player's action, so the events are not always triggered when you expect them to.
Thank you TH! I'll try that out :)