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
Here is a gaster blaster sprite I made a long time ago
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)
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.
All this code makes a basic gaster blaster but its beam looks very lame:
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:

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 (press A to summon blasters)
Mess around with the inputs to change the beam’s look to your liking.
I HAVE BEEN SUMMONED!
does the gaster blaster work with animation?
I assume by animation you mean the animate block →
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.
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
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
Sure. Use the sprite utility extenstion to get an image of the screen, flip it and render it back.
Here is the extension → https://github.com/jwunderl/arcade-sprite-util
To download it, click on the extension button
Paste the link and click on the box that appears
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 (Press A to go upsidedown)