This is my first (and not my last) extension! its called image particles!
just paste this code into the extension searchbar ShrimpCatDev/image-particles
all you do is define a particle, i recommend you put it in a repeating block so it makes multiple!
x = the particle x
y = the particle y
vx and vy = the particles velocity X and Y
lifetime = the lifetime of the particle (in ticks)
image = the particle image
ax and ay = the acceleration x and y of the particle (gravity)
Can we put animations on the particle? I know it has an image but if I want to make a slowly pulsing particle it might be a bit hard. Other than that, I am really excited. (I might even put this in my hollow knight game) I even remember looking through make code’s particle factory code and giving up because I don’t know how to make extensions.
If you make all the particles the same sprite kind (like ‘particle’) then you can make an ‘on sprite of kind particle’ created block to automatically apply an animation!
yeah i could, but im actually not using sprites for the particles, its just drawing images to the screen. buuuuuut i could add an animated sprite block that did animated sprites for particles!