Page 1 of 1
[solved]how to use particlesystem with quad
Posted: Fri Dec 28, 2012 2:29 pm
by dwdcth
I want to use particlesystem,but the "newParticleSystem" only supplies full image.
But I have a big image that has many effects.Is there a way to use love' s quad?
In other way,how can I get a part of image?
Thanks!
Re: [help]how to use particlesystem with quad
Posted: Sat Dec 29, 2012 3:17 pm
by Jasoco
You could write your own particle system because I don't think Löve currently allows the use of a quad table and image for a particle which is sad. They should implement it. Let us specify an image and a quad table that's properly numbered then have it automatically figure out when each frame should be used based on the length of the quad table and the life of the particle.
Implement this please dear Löve developers!
Re: [help]how to use particlesystem with quad
Posted: Sat Dec 29, 2012 6:52 pm
by bartbes
I am not even sure what you're asking for Jasoco..
dwdcth, it looks like that's an animation though, are you sure you want to be using ParticleSystem?
Re: [help]how to use particlesystem with quad
Posted: Sat Dec 29, 2012 10:07 pm
by Nixola
I think Jasoco's asking for animated particles
Re: [help]how to use particlesystem with quad
Posted: Sat Dec 29, 2012 10:11 pm
by Jasoco
Exactly. A particle is just an image that is static and shrinks or grows over its lifetime. Why not implement the ability to also specify a properly constructed quad table and have it use that instead? Then you can make swirling smoke or other effects instead of just plain static images.
Re: [help]how to use particlesystem with quad
Posted: Sun Dec 30, 2012 3:49 am
by dwdcth
Thanks,all of you.When there are a lot of effects, you need to generate a lot of images corresponding.But I want to put these
effects into one big image.From your explanations,I know it may be impossible unless realize your own functions.