[Extension] arcade-fire-sprites

Hey folks!

Another day, another extension (this one you might have seen me use on stream on Monday). I present: riknoll/arcade-fire-sprites!

This is an extension for creating procedurally generated fire effects like this:

fire

To create a fire effect, you first need to create a fire spawner. Fire spawners manage the number of fire simulations running at once. If you are spawning a lot of fire sprites, the spawner will reuse existing fire simulations instead of creating new ones, which improves performance. The number of simultaneous fire simulations is determined by the max sources parameter in the create spawner block.

All fire sprites from a spawner share the same dimensions, strength, color ramp, and update/sputter intervals. If your game needs different types of fire, you should create one fire spawner for each type (e.g. one for lanterns, one for campfires, one for attacks, etc.).

Anyways, give it a shot! All of the blocks should have help pages (right click on the block and select “Help” to open)

24 Likes

Wow! This is so cool!!

2 Likes

I can see a great boss room in my future… :eyes:

3 Likes

Yay! I wanna use this!

3 Likes

This is so cool. Much better than using particle effects.

4 Likes

Kinda reminds me of that one dude who was like:

MICHEAL! DON’T LEAVE ME HERE! MICHEAL!

4 Likes

OMG, this is PERFECT for my game! Now I can show a destroyed facility without my sucky art! Thank you richard!

3 Likes

also out of curiosity what made you want to make this extension

2 Likes

hey @richard I also have a question how in the Exstension in the ramp block do you set a specific size for the image instead of it being 16x16 pixels

2 Likes

hah sylvancircle was years ahead of the game with extra effects

1 Like

this is one of those things that well not needed something for sure wanted thank you @richard

2 Likes

i did this by creating a custom shadow block:

this block is a copy of the definition of the the one used in the sprite block but it has the initWidth and initHeight properties set to specify the default image size.

then, in the definition for the set color ramp block, i set the shadow of the image to the blockId of this function:

and as for what made me want to make this extension, i had this code lying around from a while back (i used it in bug arena) and i wanted to reuse it in the zelda-inspired game we’re working on in livestream right now.

3 Likes

nice thank you

because I used it for my letter image extension neverstopthecoder/image-letter-extension

also why with this added do the image parts take over the color of the block

thank you but what part of those //% are needed just for a image and with out a sprite input and and what do they each do if you don’t mine

Hey @richard, is it possible to rotate the fire so that it is sideways or upside down??

1 Like

wish granted!

i just updated the extension so that small fire sprites (smaller than 40x40 pixels) now support rotation and scaling:

rotating-fire

you can rotate and scale them just like normal sprites (e.g. using the properties in the sprite dropdown).

large fire sprites (greater than 40 width or 40 height) do not support scaling or rotating, and behave exactly the same as before. this is because of the optimizations in the extension for large fires and i won’t be fixing it. so if you want a big fire that you can rotate, maybe try using several smaller fires.

4 Likes

Thanks for that!

2 Likes

We have Fire Sprites. We Have Text Sprites. There is only one other thing this world needs.

1000094983

3 Likes