Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / delete particles softly

Author
Message
bluemill
6
Years of Service
User Offline
Joined: 5th May 2018
Location:
Posted: 16th May 2018 23:06
DeleteParticles erase instantly.

What I wanted was to leave the particles to me until the end of their life after the command was activated.
TomToad
6
Years of Service
User Offline
Joined: 6th Jan 2018
Location:
Posted: 17th May 2018 12:42
Possibly set the particle frequency to 0, then wait long enough for all the particles to disappear before deleting the emitter.

Took the example Projects\Particles\CreatingParticles\CreatingParticles.agk and modified it so that pressing the spacebar will delete the emitter gracefully
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 17th May 2018 16:05 Edited at: 17th May 2018 16:06
Is GetParticlesMaxReached() what you need?
bluemill
6
Years of Service
User Offline
Joined: 5th May 2018
Location:
Posted: 17th May 2018 19:49
hm, I tried something similar like that, but I thought there was a simpler way
IronManhood
9
Years of Service
User Offline
Joined: 6th Feb 2015
Location: US
Posted: 17th May 2018 21:07 Edited at: 17th May 2018 21:09
Simpler? That's pretty much the simplest way.. It returns 1 when the particle has finished, in other words, when you can delete it without noticing the deletion visually.

Login to post a reply

Server time is: 2024-11-23 00:53:49
Your offset time is: 2024-11-23 00:53:49