ZIM Particle Emitter Like Fire

I try to translate that code to last ZIM version:

but the not fix:

I need a fire effect for torch

I think the issue is pinkFire.interval = 10; should be .01 in s.

But also consider using a flame sprite like this (maybe add a sink as well)

F.color = "#130200";
F.loadAssets("flame.png", "https://zimjs.org/assets/");
F.on("complete", ()=>{
	new Emitter({
		obj:new Sprite('flame.png', 8, 1).alp(.2),
		angle:-90
		force:{min:2.5, max:4.5},
		gravity:0,
	}).center();
});

image

2 Likes

Thanks! and look better

1 Like