# How to make projectiles come from a sprite every second

**URL:** https://forum.makecode.com/t/how-to-make-projectiles-come-from-a-sprite-every-second/4962
**Category:** Help
**Created:** [December 12, 2020, 12:52am UTC](https://forum.makecode.com/t/how-to-make-projectiles-come-from-a-sprite-every-second/4962 "2020-12-12T00:52:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mallard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mallard/32/2721_2.png) [@Mallard](https://forum.makecode.com/u/Mallard)
#### Post date: [December 12, 2020, 12:52am UTC](https://forum.makecode.com/t/how-to-make-projectiles-come-from-a-sprite-every-second/4962/1 "2020-12-12T00:52:54Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![felixtsu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/felixtsu/32/12024_2.png) [@felixtsu](https://forum.makecode.com/u/felixtsu)
#### Post date: [December 12, 2020, 3:22am UTC](https://forum.makecode.com/t/how-to-make-projectiles-come-from-a-sprite-every-second/4962/2 "2020-12-12T03:22:59Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/c52d7252d5ceb6fdf57e4f309d57e4cde2a8c42f.png)

Demo is here:

> **[Periodically.Firing](https://arcade.makecode.com/02787-77048-65416-15911)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
