# Someone please help me: enemy shooting

**URL:** <https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [May 23, 2020, 5:06am UTC](https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197 "2020-05-23T05:06:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nis](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@Nis](https://discourse.processing.org/u/Nis)\
**Post date:** [May 23, 2020, 5:06am UTC](https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197/1 "2020-05-23T05:06:34Z")

</div>

[https://editor.p5js.org/Nis\_Collect/sketches/U0p3GjOK1](https://editor.p5js.org/Nis_Collect/sketches/U0p3GjOK1)

Above is the link of my code.  
Please check it and please tell me how can I make the circular enemies (which are moving towards left), fire small circular bullets at my player(which is in blue colour).

Please give a brief description of what you suggest…  
If you can, then please describe your answer with some code also.

Please… please…please

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 23, 2020, 12:37pm UTC](https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197/2 "2020-05-23T12:37:48Z")

</div>

When they fire randomly you can use command random()

The idea is that the bullets are visible throughout

So when you shoot add 5 bullets to an arraylist of class Bullet

Display the arraylist throughout and move the bullets. When you search shoot on the forum you will find something

---

<div class="post-metadata">

**Author:** ![Nis](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@Nis](https://discourse.processing.org/u/Nis)\
**Post date:** [May 23, 2020, 1:30pm UTC](https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197/3 "2020-05-23T13:30:59Z")

</div>

I can’t understand you. Can you please explain it with some code  
…

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 23, 2020, 3:10pm UTC](https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197/4 "2020-05-23T15:10:45Z")

</div>

Best when you check the arraylist in the reference

Did you search the topic in the forum?

Show your attempt with the arraylist and the class Bullet then I can help

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [May 23, 2020, 3:12pm UTC](https://discourse.processing.org/t/someone-please-help-me-enemy-shooting/21197/5 "2020-05-23T15:12:36Z")

</div>

Yeah totally agree, @Nis try not to post multiple questions with the same title (which doesn’t describe your issue) and I think that putting some code right now is not going to help you more.

Read the guidelines : [https://discourse.processing.org/faq#keep-tidy](https://discourse.processing.org/faq#keep-tidy)
