java - How to scale particle effects in libGDX at runtime? -


is there way scale particle effects @ runtime using libgdx's particle system?

i'm aware of question on subject, doesn't address scaling @ runtime. tried using answer viktor, made particle effect disappear together. here code tried using:

particleeffect pe;  //scale particle for(particleemitter emitter : pe.getemitters()) {     float scaling = emitter.getscale().gethighmax();     emitter.getscale().sethigh(scaling * scale);     scaling = emitter.getscale().getlowmax();     emitter.getscale().setlow(scaling * scale);     scaling = emitter.getvelocity().gethighmax();     emitter.getvelocity().sethigh(scaling * scale);     scaling = emitter.getvelocity().getlowmax();     emitter.getvelocity().setlow(scaling * scale); }  pe.setposition(x, y); pe.draw(spritebatch, delta); 

without scaling code in middle of that, renders fine, not scaled.

maybe it's late... if needs :

particleeffect.scaleeffect( scale factor);


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -