How to add cool down

Can someone help me add a cooldown I’ve been stuck on it for ages
Microsoft MakeCode Arcade

2 Likes

this is not a shared link, this just leads to the editor.
press image to create a sharing link.

3 Likes

Use the Timers plugin. It has a couple of blocks that work perfect for a cool down.

3 Likes

@quix your link doesn’t work. You have to click the button that says share to have the link of your game then, else it is not going to appear.

3 Likes

Sorry about that but I’ve gotten the cooldown to work now I’m just trying to make it go faster every 25 kills

1 Like

Sorry about that but I’ve gotten the cooldown to work now I’m just trying to make it go faster every 25 kills

1 Like

(sorry if this isn’t the most helpful, I’m trying to work on my “helping people code skills)” Welcome to the forum @quix! :smiley:

You want throw a change “variable by X” into an “on sprite of kind player overlaps with othersprite of kind enemy” block. Then put an “if variable ≥ to 25 then [insert thing you want it to do here]” after the “change variable by X” block

good luck with your game!
-pecan4

Sorry about that but ive gotten the cool down to work im just trying to make the fire rate go faster every 25 kills https://arcade.makecode.com/S33962-41301-39825-76573

1 Like

i apreciate your help but it dosent quite work for me i may be doing it wrong but it just dosent work

1 Like

How dose it work?

1 Like

Try using the “For ‘action’ at most once every ‘xxx’” block. Basically the things that are inside the block can only be done once every XXX number of mseconds. So if you put in 2500 for the amount of time, the things inside that block can only happen once every 2.5 seconds.

3 Likes

Oh cheers mate it works like a charm!

2 Likes