# Show "explosions" in which many dots scatter away from the location of a mouse click

**URL:** <https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [November 1, 2020, 9:24am UTC](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106 "2020-11-01T09:24:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeremy](https://discourse.processing.org/u/jeremy)\
**Post date:** [November 1, 2020, 9:24am UTC](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106/1 "2020-11-01T09:24:15Z")

</div>

Hi,I’ve a question.

I want to write a code like this:

[![](https://img.youtube.com/vi/grkHVrfQ_As/maxresdefault.jpg "CSE1211 Lab 4-1") ](https://www.youtube.com/watch?v=grkHVrfQ_As)

Can anyone give me a example ?  
Thank you!

---

<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:** [November 1, 2020, 10:31am UTC](https://discourse.processing.org/t/show-explosions-in-which-many-dots-scatter-away-from-the-location-of-a-mouse-click/25106/2 "2020-11-01T10:31:19Z")

</div>

> [@Someone please help solving a problem : shooting bullets](https://discourse.processing.org/t/someone-please-help-solving-a-problem-shooting-bullets/21210/4):
>
> Here is a shooting example with an explosion where the bullets hit a surface or wall Click the mouse in the upper screen area. This Sketch has multiple tabs originally. Chrisir // \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* // joined pde-file of folder ShootTest3 // \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* // \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* // tab: ShootTe…
