Can someone help me add a cooldown I’ve been stuck on it for ages
Microsoft MakeCode Arcade
this is not a shared link, this just leads to the editor.
press to create a sharing link.
Use the Timers plugin. It has a couple of blocks that work perfect for a cool down.
@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.
Sorry about that but I’ve gotten the cooldown to work now I’m just trying to make it go faster every 25 kills
Sorry about that but I’ve gotten the cooldown to work now I’m just trying to make it go faster every 25 kills
(sorry if this isn’t the most helpful, I’m trying to work on my “helping people code skills)” Welcome to the forum @quix!
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
i apreciate your help but it dosent quite work for me i may be doing it wrong but it just dosent work
How dose it work?
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.
Oh cheers mate it works like a charm!