Particle effects

If you have a module that you'd like comments on or would like to know how to create your very own module, post here

Moderator: Moderator

Post Reply
Message
Author
Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Particle effects

#1 Post by Castler »

After spending much of the evening fooling around with particle effects, I think I have most of the basics figured out.

I still don't understand the return values, though. It looks like particle effects a list containing the following:
  • A generator or table - I understand this, more or less.
  • An emitting function. DG describes this here.
  • A number. I am completely stumped as to what this does.
  • An optional filename to use in place of the standard particle appearance
  • A mysterious optional boolean
Is this more or less correct?

What are the third and fifth parameters (the number and the boolean)?
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Particle effects

#2 Post by darkgod »

Yup!

Number is the max number of particles the system will handle.
Set it not too high as even if the partciles are not generate this has a small performance impact.
Boolean is for the system to not be deleted when there are no more live particles. Use with care.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Re: Particle effects

#3 Post by Castler »

Thanks!

I've started a wiki page. Hopefully I didn't make any mistakes:

http://te4.org/wiki/Particle_Effects
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Particle effects

#4 Post by darkgod »

Very nice !
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Particle effects

#5 Post by HousePet »

Hooray!
My feedback meter decays into coding. Give me feedback and I make mods.

Post Reply