pausing a particle system and restarting it

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: pausing a particle system and restarting it

Post by Nixola »

Ref wrote:
Fatmat927 wrote:Nixola, i tried the ps:stop() but then when i tried to ps:start() it didn't work
and i will try the same thing as the update but with the draw thanks I didn't thought about this
Just look a my example above.
It uses start & stop without any problems.
Nixola's approach works just as well.
The difference is 'stop' will stop particles from being generated. The particles already created will disappear.
Preventing 'update' from occurring (Nixola's approach) will just stop the generation of new particles and retain all the previously generated particles in their current positions.
Your problem should be solved!
I think you wanted to mention Beyek/Lafolie?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Fatmat927
Prole
Posts: 42
Joined: Wed Sep 18, 2013 1:15 am

Re: pausing a particle system and restarting it

Post by Fatmat927 »

it's alright instead of stopping the update i stopped the draw and it worked thank you
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], NoreoAlles and 4 guests