# Loop function

**URL:** <https://phaser.discourse.group/t/loop-function/3786>\
**Category:** Phaser 2 / CE\
**Created:** [September 23, 2019, 2:56am UTC](https://phaser.discourse.group/t/loop-function/3786 "2019-09-23T02:56:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Punomi](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@Punomi](https://phaser.discourse.group/u/Punomi)\
**Post date:** [September 23, 2019, 2:56am UTC](https://phaser.discourse.group/t/loop-function/3786/1 "2019-09-23T02:56:46Z")

</div>

Hi, I am new to phaser. I would like to know how do I loop the bullet shots in the game and set the amount of bullet shots in the script? There are different button to control the shots.
