problem with particles
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
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
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.