Flint Particle System Forum - KeyDownAction2010-10-07T11:16:26+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
KeyDownActionhttp://flintparticles.org/forum/comments.php?DiscussionID=170&Focus=676#Comment_6762009-02-12T05:16:11+00:002009-02-12T05:25:14+00:00paulhttp://flintparticles.org/forum/account.php?u=158
I can't seem to figure out how to use KeyDownAction correctly. Could someone post an example of how it's used? None of the examples that come with Flint use it, and the documentation is a bit too ...
KeyDownActionhttp://flintparticles.org/forum/comments.php?DiscussionID=170&Focus=683#Comment_6832009-02-14T15:15:35+00:002010-10-07T11:16:26+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
emitter.addAction( new KeyDownAction( new Move(), Keyboard.UP, renderer.stage ) );
Will cause the Move action to occur only when the up key is pressed.
emitter.addAction( new KeyDownAction( new Move(), Keyboard.UP, renderer.stage ) );
Will cause the Move action to occur only when the up key is pressed.]]>
KeyDownActionhttp://flintparticles.org/forum/comments.php?DiscussionID=170&Focus=687#Comment_6872009-02-15T02:41:43+00:002010-10-07T11:16:26+01:00paulhttp://flintparticles.org/forum/account.php?u=158
Excellent, thanks!