Slick Forums

Discuss the Slick 2D Library
It is currently Sun Nov 17, 2019 2:36 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Dec 08, 2010 10:43 pm 
Offline
Game Developer
User avatar

Joined: Tue Nov 21, 2006 4:46 am
Posts: 620
Location: Iceland
When I set a particle system emitter as disabled, e.g.:

Code:
ParticleEmitter emitter = ps.getEmitter(0);
emitter.setEnabled(false);


This this is ignored when I invoke ps.update() and ps.render(), thus the emitter is updated and rendered despite it's status as "disabled".


I wanted to create a ParticleSystem for a damaged unit in my game. It would have emitters for "sparks", "smoke", "flames", which would get activated depending on the damage level of the unit. But enabling/disabling individual emitters is defunct.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2011 1:55 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Resolved in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: MSN [Bot] and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group