Particle effects

#1

Hello,

Are there any plans in the near future to add particle effect objects to the CoSpaces library?

#2

It’s a good question, Tom, and one I’m sure the CoSpaces team can answer. In the meantime, you can always create particle effects with an object factory method which creates, animates, and destroys each object after a certain time.

Regards,
Geoff @ TechLeap

#3

Thanks for the reply. Can you elaborate on the method you suggested? Where can I find that? What is an object factory method?

#4

It’s a design pattern in coding, but you can view and remix an example at https://cospac.es/PL5j - you create a function which takes an object as a parameter, then in the function you give your object all the magic powers you want it to have, and then call that function, setting a cloned object as a parameter.

Cheers!