Keyboard Delay?

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?

1 Like

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.

1 Like

click the triger block then click the plus

Oh, lol. Looks like I don’t need to.

Where exactly can I find the example?

1 Like

I guess I should have just sent the link directly :upside_down_face:

If you ever need any help with any code, you can find a lot more helpful examples here.

2 Likes

Ember’s examples

I have a simple cooldown in my example library. It’s only two behaviors. Three (and another object) if you want a cooldown bar.

@Dinossairo

1 Like

[Uploading: Screenshot 2023-09-06 at 3.55.58 PM.png…](
Just this simple mechanism

3 Likes

Not a link or a picture. This is just characters.

1 Like

What lol that’s funny

3 Likes

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.

1 Like