Flint Particle System Forum - How do you rotate an emitter? Sun, 26 Dec 2010 15:20:42 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher How do you rotate an emitter? http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=105#Comment_105 http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=105#Comment_105 Sat, 19 Apr 2008 09:03:29 +0100 robotz
Say I have a steady() emitter running, I'd like to be able to rotate it based on keypresses. There is a rotate method but that appears to keep the emitter rotating forever (i.e. it isn't under your control once set off)

Cheers,

Rich ]]>
How do you rotate an emitter? http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=107#Comment_107 http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=107#Comment_107 Tue, 22 Apr 2008 02:08:43 +0100 ericr
emitter.rotate(90); // Should rotate the Renderer (and thus the contained Emitter) 90 degrees.

See the DisplayObject documentation on the rotation property for more.

That work? ]]>
How do you rotate an emitter? http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=108#Comment_108 http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=108#Comment_108 Tue, 22 Apr 2008 19:47:44 +0100 robotz
http://www.photonstorm.com/swfs/thrust.swf

Press space-bar to reset the ship if you fly off the edge (easy to do as I've not yet smoothed things out)

The trail should remain where it was emitted and not rotate with the renderer. But of course rotating the renderer will do exactly this, so I understand fully WHY it is doing it, just not how to avoid it.

Cheers,

Rich ]]>
How do you rotate an emitter? http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=109#Comment_109 http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=109#Comment_109 Tue, 22 Apr 2008 23:08:09 +0100 pyiap How do you rotate an emitter? http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=110#Comment_110 http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=110#Comment_110 Wed, 23 Apr 2008 01:19:53 +0100 robotz
Right now I'm thinking if this isn't possible I'll have to take the "RotateEmitter" class and tweak it for this specific purpose.

Seems highly strange Flint can't do it natively. Am still hoping I'm just missing something obvious ... ]]>
How do you rotate an emitter? http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=111#Comment_111 http://flintparticles.org/forum/comments.php?DiscussionID=20&Focus=111#Comment_111 Wed, 23 Apr 2008 06:56:59 +0100 Richard
You rotate the emitter with

emitter.rotation = 90;

This doesn't move the renderer, and hence doesn't move any existing particles.

See the docs for more info

Be sure to use the latest version of Flint or you may run into the bug mentioned here. ]]>