# Shooting bullets in Phaser 3 using Arcade Physics Groups

**URL:** <https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368>\
**Category:** Phaser 3\
**Created:** [February 29, 2020, 4:32pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368 "2020-02-29T16:32:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sabatino](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/sabatino/32/2897_2.png) [@Sabatino](https://phaser.discourse.group/u/Sabatino)\
**Post date:** [February 29, 2020, 4:32pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368/1 "2020-02-29T16:32:17Z")

</div>

I created a simple video tutorial on how to create a space ship that shoots lasers (using Arcade Physics Groups), and I’d love to have your feedback on it:

[https://www.codecaptain.io/blog/game-development/shooting-bullets-phaser-3-using-arcade-physics-groups/696](https://www.codecaptain.io/blog/game-development/shooting-bullets-phaser-3-using-arcade-physics-groups/696)

You’ll learn about:

- How to set up a Phaser 3 Arcade Physics Group
- Create an Arcade physics group for pooling objects
- Use the mouse to make the space ship move
- Detect when lasers are out of bound and reset them
- Object Pooling using Phaser Groups for improving performance
- Phaser mouse and keyboard input events

How is the format? Would you prefer written tutorials, videos or both?

---

<div class="post-metadata">

**Author:** ![AturSams](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/atursams/32/2819_2.png) [@AturSams](https://phaser.discourse.group/u/AturSams)\
**Post date:** [March 1, 2020, 1:39pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368/2 "2020-03-01T13:39:40Z")

</div>

Did you see this example?  
[Pool Example](https://phaser.io/examples/v3/view/pools/bullets#)  
Speaking from a beginners point of view, it seems simpler.

---

<div class="post-metadata">

**Author:** ![Sabatino](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/sabatino/32/2897_2.png) [@Sabatino](https://phaser.discourse.group/u/Sabatino)\
**Post date:** [March 1, 2020, 1:54pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368/3 "2020-03-01T13:54:13Z")

</div>

I’m curious to know what makes you think that the example seems simpler? 🙂  
Is it because of the way I worked with classes in my example?

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [March 1, 2020, 4:42pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368/4 "2020-03-01T16:42:45Z")

</div>

[Bullets Group](https://phaser.io/examples/v3/view/physics/arcade/bullets-group) is the similar example, as it uses Arcade Physics.

---

<div class="post-metadata">

**Author:** ![Sabatino](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/sabatino/32/2897_2.png) [@Sabatino](https://phaser.discourse.group/u/Sabatino)\
**Post date:** [March 1, 2020, 4:57pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368/5 "2020-03-01T16:57:39Z")

</div>

@samme, that is correct! A couple of years ago I made an example for Phaser 2:  
[https://www.codecaptain.io/blog/game-development/shooting-bullets-using-phaser-groups/518](https://www.codecaptain.io/blog/game-development/shooting-bullets-using-phaser-groups/518)

And last week I decided to (finally) upgrade it to Phaser 3, and write a tutorial / screencast on it 🙂

---

<div class="post-metadata">

**Author:** ![plicatibu](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/plicatibu/32/2397_2.png) [@plicatibu](https://phaser.discourse.group/u/plicatibu)\
**Post date:** [March 2, 2020, 3:12pm UTC](https://phaser.discourse.group/t/shooting-bullets-in-phaser-3-using-arcade-physics-groups/5368/6 "2020-03-02T15:12:23Z")

</div>

I read your tutorial and watched it too.

I liked both of them.

Thanks for sharing.
