# Undertale

**URL:** https://forum.makecode.com/t/undertale/34795
**Category:** Help
**Tags:** game
**Created:** [March 22, 2025, 3:59am UTC](https://forum.makecode.com/t/undertale/34795 "2025-03-22T03:59:15Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![skibidiboiley](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@skibidiboiley](https://forum.makecode.com/u/skibidiboiley)
#### Post date: [March 22, 2025, 3:59am UTC](https://forum.makecode.com/t/undertale/34795/1 "2025-03-22T03:59:15Z")

</div>

does anyone know how to make a gaster blaster in make code arcade? like the animations and stuff, I kind of need help on it

---

<div class="post-metadata">

### Author: ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)
#### Post date: [March 22, 2025, 6:39pm UTC](https://forum.makecode.com/t/undertale/34795/2 "2025-03-22T18:39:27Z")

</div>

Here is a gaster blaster sprite I made a long time ago

 ![Screenshot 2025-03-22 at 9.52.01 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/e/ae8fc2a1fd49ab32923e5557f96ad88534ae0bf4.png)  
You can use makecode’s built in acceleration feature to mimic the movement of a gaster blaster. The lifespan feature will ensure the gaster blaster destroys itself after (1700)ms. I set the depth to 1 to make sure that the gaster blaster is always above its lasers. (this does not have to be 1 but it does have to be higher than the laser’s depth)  
 ![Screenshot 2025-03-22 at 9.54.25 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/4/44597e3b028597c9516d925943ba50277ac3ac02.png)  
Next use an on game update loop to summon lasers. The code creates lasers at the positions of any gaster blasters on screen. I make sure the lasers destroy themselves with lifespan similarly to the blaster. I make a quick rectangle for the laser’s image – This will be easy to manipulate later.  
 ![Screenshot 2025-03-22 at 10.09.27 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/7/47c8f88749edd32355a46a942ad098d410f39f73.png)

All this code makes a basic gaster blaster but its beam looks very lame:

 ![Screenshot 2025-03-22 at 10.07.02 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/7/87bcbeda59080cd0ad71fbd64015e44c2c16fe5a.png)  
To fix this we can use math! I won’t explain the equation because you don’t really need to know how it works but if you are a math dude you can figure it out:  
 ![Screenshot 2025-03-22 at 10.11.48 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/optimized/3X/b/4/b430d884565744468c1beb9f9fbde0477b6d8b92_2_690x44.png)  
This will give the width of the laser that iconic pulse effect. Now you are done! Heres a link to the project in which you can look at my example code → [https://makecode.com/\_VHYWDjdTeMvH](https://makecode.com/_VHYWDjdTeMvH) (press A to summon blasters)  
Mess around with the inputs to change the beam’s look to your liking.

---

<div class="post-metadata">

### Author: ![Saturn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/saturn/32/20711_2.png) [@Saturn](https://forum.makecode.com/u/Saturn)
#### Post date: [March 22, 2025, 6:50pm UTC](https://forum.makecode.com/t/undertale/34795/3 "2025-03-22T18:50:58Z")

</div>

**I HAVE BEEN SUMMONED!**

> **[Gaster Blaster](https://arcade.makecode.com/S06258-79533-99224-60864)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

### Author: ![skibidiboiley](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@skibidiboiley](https://forum.makecode.com/u/skibidiboiley)
#### Post date: [March 23, 2025, 9:32pm UTC](https://forum.makecode.com/t/undertale/34795/4 "2025-03-23T21:32:26Z")

</div>

does the gaster blaster work with animation?

---

<div class="post-metadata">

### Author: ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)
#### Post date: [March 24, 2025, 2:35am UTC](https://forum.makecode.com/t/undertale/34795/5 "2025-03-24T02:35:29Z")

</div>

I assume by animation you mean the animate block →

 ![IMG_0587](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/4/6/462d75618e730453def460e49970526447a1e9e2.jpeg)  
In this case, yes! Just animate your blaster sprite with more frames. I’m not going to draw them but you can use the sprite I gave you.

---

<div class="post-metadata">

### Author: ![ADM\_F](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/adm_f/32/19808_2.png) [@ADM\_F](https://forum.makecode.com/u/ADM_F)
#### Post date: [March 24, 2025, 12:26pm UTC](https://forum.makecode.com/t/undertale/34795/6 "2025-03-24T12:26:32Z")

</div>

> **[Lasers And Gaster blasters](https://arcade.makecode.com/S77018-65067-47856-03309)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

the main part of a gaster blaster is how the beam in instant so here’s a short piece of code to make that

i used Sprite-Scaling to achieve this its found in the extensions tab

---

<div class="post-metadata">

### Author: ![skibidiboiley](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@skibidiboiley](https://forum.makecode.com/u/skibidiboiley)
#### Post date: [March 31, 2025, 4:42pm UTC](https://forum.makecode.com/t/undertale/34795/7 "2025-03-31T16:42:59Z")

</div>

thank you, I have 1 more question though, i am wondering if there is code that flips the screen upside down by any chance? its ok if there is not

---

<div class="post-metadata">

### Author: ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)
#### Post date: [April 3, 2025, 4:50pm UTC](https://forum.makecode.com/t/undertale/34795/8 "2025-04-03T16:50:58Z")

</div>

Sure. Use the sprite utility extenstion to get an image of the screen, flip it and render it back.

 ![Screenshot 2025-04-03 081654](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/2/82c59911e6c123c1342ec5ba2762dd2b555b5507.png)  
Here is the extension → [https://github.com/jwunderl/arcade-sprite-util](https://github.com/jwunderl/arcade-sprite-util)  
To download it, click on the extension button  
 ![Screenshot 2025-04-03 081753](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/c/c/cc60c108fbd3922135d8d079584faf1e0ecb8e67.png)  
Paste the link and click on the box that appears  
 ![Screenshot 2025-04-03 082005](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/8/6808bebb29d2a63ab7d9a76e1ac4894b187c1c35.png)  
Now you should have a sprite utility drawer where you can find the “render on z index block”

Here is my example project → [https://makecode.com/\_EUxaooEAVWHM](https://makecode.com/_EUxaooEAVWHM) (Press A to go upsidedown)

---

<div class="post-metadata">

### Author: ![undertale\_fan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/undertale_fan/32/24848_2.png) [@undertale\_fan](https://forum.makecode.com/u/undertale_fan)
#### Post date: [September 17, 2025, 5:32pm UTC](https://forum.makecode.com/t/undertale/34795/9 "2025-09-17T17:32:57Z")

</div>

![gaster_blaster](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/d/6/d61bc1d7e4bb70c3d902947a42409d6f4d80f28a.png)heres my gaster blaster sprite
