Slick Forums

Discuss the Slick 2D Library
It is currently Fri May 24, 2013 1:29 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Apr 02, 2012 12:43 am 
Offline
Slick2D Developer

Joined: Thu Mar 31, 2011 5:06 am
Posts: 239
As the title states, I want to change the angle of a particle emitter. I've looked into it, and it appears I have to cast my getEmitter(0) to ConfigurableEmitter, and then change the value angularOffset. The thing is, angularOffset is of type SimpleValue, which I don't know how to use.

_________________
Liam (liamzebedee) Edwards-Playne
Cryptum


Top
 Profile  
 
PostPosted: Mon Apr 02, 2012 5:54 am 
Offline
Slick Zombie

Joined: Sat Jan 27, 2007 7:10 pm
Posts: 1469
I don't know much about Slick's particles, but the easiest solution would be to rotate your graphics context before rendering your particle emitters/systems:
Code:
g.rotate(centerX, centerY, angle);


Top
 Profile  
 
PostPosted: Mon Apr 02, 2012 6:48 am 
Offline
Slick2D Developer

Joined: Thu Mar 31, 2011 5:06 am
Posts: 239
That is what I have been doing, however I actually need to rotate the emitter, otherwise it looks strange.

_________________
Liam (liamzebedee) Edwards-Playne
Cryptum


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 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:  
Powered by phpBB® Forum Software © phpBB Group