I might be misremembering, but I think MOSParticles specifically animate based on how long they last - first frame when they spawn, and they animate through their lifetime, last frame appearing when they die. Your MOSParticle might not be animating because it has an endless LifeTime.

Try putting a script on your particle that's just

Code:

function Update(self) self.ToDelete = false;end

Or have a single script handle multiple particles. Which can also handle animating by manually spawning particles with specific frames at the right time.

Thu Dec 14, 2017 3:28 am

grave accent

Joined: Wed Apr 16, 2014 8:53 amPosts: 63Location: Bunker busting.

Re: MOSParticle problems

CaveCricket48 wrote:

I might be misremembering, but I think MOSParticles specifically animate based on how long they last - first frame when they spawn, and they animate through their lifetime, last frame appearing when they die. Your MOSParticle might not be animating because it has an endless LifeTime.

Try putting a script on your particle that's just

Code:

function Update(self) self.ToDelete = false;end

Or have a single script handle multiple particles. Which can also handle animating by manually spawning particles with specific frames at the right time.

Give the particles a lifetime that's the length you want the animation to be. Give the script a Destroy() block that spawns a particle in its place. That way when it dies, it creates a new particle, and accomplishes animation.

Thu Dec 14, 2017 3:53 am

grave accent

Joined: Wed Apr 16, 2014 8:53 amPosts: 63Location: Bunker busting.

Re: MOSParticle problems

Well, I gave it a lifetime of 4000 before you gave me the script, and it still didn't animate.

Thu Dec 14, 2017 3:55 am

CaveCricket48

Joined: Tue Jun 12, 2007 11:52 pmPosts: 9827Location: Here

Re: MOSParticle problems

Try setting the Framerate to 0

Thu Dec 14, 2017 3:57 am

grave accent

Joined: Wed Apr 16, 2014 8:53 amPosts: 63Location: Bunker busting.

Re: MOSParticle problems

Well, that appears to have done it. Thanks cave.

Now I just gotta make it respawn, as it currently hangs on the final frame cause of the deletion prevention.

Who is online

Users browsing this forum: Bing [Bot]

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum