The Daily Click ::. Forums ::. Klik Coding Help ::. Why does this happen?
 

Post Reply  Post Oekaki 
 

Posted By Message

vinicio



Registered
  11/04/2015 21:20:09
Points
  142
7th August, 2016 at 07/08/2016 04:03:13 -

im working on particle effects for my game but for some reason they dont disappear after the events.
so this is what happens:
i have diferent smoke animations for various objects and they get destroyed after the animation ends, however i thought they looked better moving so i used the bouncing ball movement on these actives and for some reason they dont disappear and just keep moving while on the last frame.
anyone knows why does this happen?

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
8th August, 2016 at 08/08/2016 15:35:14 -

I suppose fusion still thinks the animation is playing. Instead of checking for the animation to finish you could add an extra frame to the animation and then check if the object's current frame is that frame before destroying it.

Another method is to increment an alterable variable every loop and then destroy it once the value get's larger than a number of your choosing.

 
n/a

vinicio



Registered
  11/04/2015 21:20:09
Points
  142
8th August, 2016 at 08/08/2016 19:49:42 -

Thanks for the answer ill definetly try that.

 
n/a

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
19th October, 2016 at 19/10/2016 02:11:00 -

That will almost always happen using the bouncing ball movement. I usually go with the latter suggestion.

 
[Game design makes my brain feel like its gonna explode.]
   

Post Reply



 



Advertisement

Worth A Click