In my game my character performs certain actions when doing it's attacks however I want to limit it so he has to wait for the action to finish before he can try to do the action again. Currently you can just spam the key and fire a move of every half second which is a bit game breaking. So is there an actuator I can use to halt his movement?


You simply need a timer of some sort that must be at a certain value before another attack can be performed. I like using an integer property and adding to it, rather than a timer property because it gives me more control. Basics of the system require a property sensor to sense if enough time has passed yet; a property to time; an actuator in incrementally add to the timer (only if not using timer type property) and an actuator to set the property to zero whenever you do attack. The system pictured below also has a cap, so the property doesn't go to high, although it really doesn't matter.

enter image description here

you may have to click the image to see it closer. :)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.