# How do these special effects get done?

**URL:** <https://forum.defold.com/t/how-do-these-special-effects-get-done/73028>\
**Category:** Questions\
**Created:** [April 4, 2023, 5:06pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028 "2023-04-04T17:06:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedmaawy](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/ahmedmaawy/32/4351_2.png) [@ahmedmaawy](https://forum.defold.com/u/ahmedmaawy)\
**Post date:** [April 4, 2023, 5:06pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028/1 "2023-04-04T17:06:04Z")

</div>

Hi guys, so I am looking at this game:

> **[Galaxy Keeper: Space Shooter – BigButton.Co](https://www.bigbutton.co/galaxy-keeper-space-shooter/)**

And I see:

1. Lasers
2. Lightning Bolts

Normally these 2 are very difficult to achieve without custom drawing logic (you cant easily achieve this with typical sprite assets). How do you achieve such Special Effects in Defold?

---

<div class="post-metadata">

**Author:** ![lzralbu](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/lzralbu/32/32146_2.png) [@lzralbu](https://forum.defold.com/u/lzralbu)\
**Post date:** [April 4, 2023, 6:15pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028/2 "2023-04-04T18:15:46Z")

</div>

I’m no specialist but I think it’s using some combination of the following:

- [Particle effects in Defold](https://defold.com/manuals/particlefx/)
- [Shader programs in Defold](https://defold.com/manuals/shader/)

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [April 4, 2023, 7:13pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028/3 "2023-04-04T19:13:59Z")

</div>

Galaxy Keeper is afaik made with Defold 😁 @Alex_8BitSkull also made lasers in Void Scrappers and I believe he explained it somewhere, but can’t find it now. It was about stacking “parts” of animated lasers.

I believe lasers are super simple with 9-slice and just proper scaling (I didn’t make lasers, but I made connections between two points for a node/flow graph tests, the way of working is the same as laser then)

Lighting might involve some shader to make it not look stretched too much and realistic, so I would draw it on a sprite like laser, but make a custom fragment shader that draws noised bolts on it 😉

---

<div class="post-metadata">

**Author:** ![ahmedmaawy](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/ahmedmaawy/32/4351_2.png) [@ahmedmaawy](https://forum.defold.com/u/ahmedmaawy)\
**Post date:** [April 4, 2023, 7:21pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028/4 "2023-04-04T19:21:19Z")

</div>

> [@Pawel](#):
>
> It was about stacking “parts” of animated lasers.

I kind of was for the idea this was one of the ways you could achieve that. Ouch, that process hurts

> [@Pawel](#):
>
> Lighting might involve some shader to make it not look stretched too much and realistic, so I would draw it on a sprite like laser, but make a custom fragment shader that draws noised bolts on it 😉

And this too.. I kind of was doubting it would have been this manual bit seems it is. That stitching process I admit can hurt alot 😄

---

<div class="post-metadata">

**Author:** ![ahmedmaawy](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/ahmedmaawy/32/4351_2.png) [@ahmedmaawy](https://forum.defold.com/u/ahmedmaawy)\
**Post date:** [April 4, 2023, 7:21pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028/5 "2023-04-04T19:21:50Z")

</div>

> [@lzralbu](#):
>
> - [Particle effects in Defold](https://defold.com/manuals/particlefx/)
> - [Shader programs in Defold](https://defold.com/manuals/shader/)

Thanks for the insights.

---

<div class="post-metadata">

**Author:** ![Alex\_8BitSkull](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/alex_8bitskull/32/5424_2.png) [@Alex\_8BitSkull](https://forum.defold.com/u/Alex_8BitSkull)\
**Post date:** [April 4, 2023, 9:19pm UTC](https://forum.defold.com/t/how-do-these-special-effects-get-done/73028/6 "2023-04-04T21:19:33Z")

</div>

Yes, what Paweł describes is how I did lasers in Void Scrappers.
