[solved]how to use particlesystem with quad

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
dwdcth
Prole
Posts: 10
Joined: Mon Dec 24, 2012 2:54 am

[solved]how to use particlesystem with quad

Post 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!
Attachments
particles2.png
particles2.png (225.54 KiB) Viewed 2436 times
Last edited by dwdcth on Tue Jan 01, 2013 12:03 pm, edited 1 time in total.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: [help]how to use particlesystem with quad

Post 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!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: [help]how to use particlesystem with quad

Post 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?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: [help]how to use particlesystem with quad

Post by Nixola »

I think Jasoco's asking for animated particles
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: [help]how to use particlesystem with quad

Post 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.
dwdcth
Prole
Posts: 10
Joined: Mon Dec 24, 2012 2:54 am

Re: [help]how to use particlesystem with quad

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 9 guests