I am currently making a game with combat based on Dark Souls, I have developed a functional sword but I don’t know how to make it so that a player can’t just spam the attack button and kill a boss in 2 seconds, Is there a way I can delay how often the key will trigger the attack?
You mean a cooldown? I have a simple one in my tank game. I’ll make a quick example.
There’s an example for this on the Help page.
click the triger block then click the plus
Oh, lol. Looks like I don’t need to.
Where exactly can I find the example?
I guess I should have just sent the link directly
If you ever need any help with any code, you can find a lot more helpful examples here.
I have a simple cooldown in my example library. It’s only two behaviors. Three (and another object) if you want a cooldown bar.
[Uploading: Screenshot 2023-09-06 at 3.55.58 PM.png…](
Just this simple mechanism
Not a link or a picture. This is just characters.
What lol that’s funny
For future reference, if you want to find a specific example on the help page, you can press Control + G to search the page. You can search for “ladder” for example, to find the ladder example.