How to make projectiles come from a sprite every second

Hello. I’m new here, and need help on something. I’m making a game where a sprite fires lasers. How do I make it so the sprite shoots the projectile once after a certain amount of time, like 1 second? Thanks.

Arcade makecode is event driven, for every feature we could consider the following:
a) which instruction(s)
b) when to run that instruction(s) (or code snippets)

For periodical firing, these two event are both suitable, although on game update is executed in the core game loop.

Demo is here:

1 Like