How do I keep a emitter on the end of a graphic ?

I have a gun that rotates around its center point (bit like the spaceship in asteroids).

I want a emitter to stay at the end of the gun but can’t work out how to do it.

The SetEmitterTarget command puts the emitter in the center of the graphic, I need it to at one end. I can’t use the offsets as this will change depending on rotation.

Any ideas ?

Dave [import]uid: 117617 topic_id: 28691 reply_id: 328691[/import]

not sure if this would solve your problem or not, but instead of just using 1 graphic as your graphic+emitter, use a separate graphic as an emitter with the emitter exactly where you want it to be. Group the graphic and the new emitter graphic together. Use rotation on the new group instead of the graphic.

Just a thought for a quick work around. [import]uid: 134946 topic_id: 28691 reply_id: 115682[/import]

I didn’t realise I could use a Graphic as a Emitter. That might just solve my problem, as the gun can just be the emitter.

Dave [import]uid: 117617 topic_id: 28691 reply_id: 115687[/import]