How to spawn particles around a circle?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
harrison
Prole
Posts: 17
Joined: Tue Feb 03, 2015 5:24 am

How to spawn particles around a circle?

Post by harrison »

Hi guys,

I'm trying to create an effect where particles spawn around (but not inside) a circle. Sorta like the particles that spawn when a pokemon is caught.

At first I thought I could do this by setting an offset, but I don't see any option to only spawn particles a certain distance away from the emitter.
I also considered just using a ton of emitters along the outside of the circle but that seems super inefficient.
I am also considering using a massive acceleration to teleport the particles to the boundaries of the sphere. This also seems like a hacky solution because the particles will still spawn from the center and their appearance will be delayed.

What is the best way of doing this?

Thanks,
Harrison
sphyrth
Party member
Posts: 260
Joined: Mon Jul 07, 2014 11:04 am
Contact:

Re: How to spawn particles around a circle?

Post by sphyrth »

ParticleSystem:setEmissionArea

distribution might be 'borderellipse' or 'borderrectangle' just before dx and dy.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests