Say one wishes to have an action occur whenever the A button is pressed. is there a way to add a cooldown for said action from occuring, if possible using blocks?
4 Likes
you could use this block from the timers extension
2 Likes
Yup!
The “Timer” Extension is a default extension in the list in makecode. With it comes a block which says
For *write action name* at most once every *input cooldown time* do
Inside that sandwich block you just pop your A button code and there you have your cooldown! Please, if you have any doubts, don’t hesitate to ask for my help.
2 Likes
try this https://makecode.com/_DDH0FhcU9YyL
1 Like
thanks for the help, this shall come in handy fairly soon maybe
1 Like
made it better https://makecode.com/_HHVPk00yfeCm
2 Likes