problem with particles
-Timo-
Member Posts: 2,313
I am using particles in my project and I want the particles come out of 1 side of the actor, no matter how he rotates. so when he starts with coming out to the left and rotates 90 degrees the particles come out of the top. but I don't want them to start in the middle but on the edge of the actor.
does someone know how to fix this? hope I explained enough
thanks
does someone know how to fix this? hope I explained enough
thanks
Comments
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
In my actor have a similar problem .
I set the offset in this mode:
EmitterOffsetX=cos( self.Rotation )* self.Size.Width /2
EmitterOffsetY=sin( self.Rotation )* self.Size.Width /2
you can change parameter to positioning emitter correcly
http://forums.gamesalad.com/discussion/43477/how-to-get-a-particle-emitter-to-stick-to-a-point-on-an-actor
EmitterOffsetX=cos( self.Rotation )* self.Size.Width /2
EmitterOffsetY=sin( self.Rotation )* self.Size.Width /2
worked fine thanks!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
EmitterOffsetX=cos( self.Rotation -90)* self.Size.Height /2
EmitterOffsetY=sin( self.Rotation -90)* self.Size.Height /2
or perhaps:
EmitterOffsetX=cos( self.Rotation+270 )* self.Size.Height /2
EmitterOffsetY=sin( self.Rotation +270)* self.Size.Height /2
notice it says '.Height' not width.