Flint Particle System Forum - Mouse Events Thu, 02 Jun 2016 18:32:34 +0100 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher Mouse Events http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1054#Comment_1054 http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1054#Comment_1054 Thu, 21 Jan 2010 04:21:27 +0000 extravaganzasd Here is how I am using it - I think the particles look really nice in how they behave.
http://www.extravaganzacreative.com/racheltest/ ]]>
Mouse Events http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1057#Comment_1057 http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1057#Comment_1057 Thu, 21 Jan 2010 21:48:39 +0000 extravaganzasd
emitter.addAction( new Move() );
emitter.addAction( new Collide( 1 ) );
emitter.addAction( new BoundingBox( 0, 0, 936, 533, 1 ) );
emitter.addAction( new ShowAirAction( stage ) );

emitter.addAction( new MouseAntiGravity (100, 1));
Which causes this error
1067: Implicit coercion of a value of type int to an unrelated type flash.display:DisplayObject. ]]>
Mouse Events http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1058#Comment_1058 http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1058#Comment_1058 Thu, 21 Jan 2010 22:02:17 +0000 extravaganzasd to the last line of code.

What I was hoping for was something that would repel objects from the mouse and then would fade back over time. Is it possible to attach antigravity to the mouse itself? (and then would I need to employ a tween to get them to slow down or will this happen automatically?) ]]>
Mouse Events http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1069#Comment_1069 http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1069#Comment_1069 Mon, 25 Jan 2010 07:54:12 +0000 Richard
Sorry, there was a bug in the MouseAntiGravity that stopped it working as expected. I've checked the fix into SVN. If you don't want to use the SVN version, then the work around is to reset the power after creating the MouseAntiGravity object, like this

var antiGravity : MouseAntiGravity = new MouseAntiGravity( 200,renderer );
antiGravity.power = 200;
emitter.addAction( antiGravity );


Richard ]]>
Mouse Events http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1080#Comment_1080 http://flintparticles.org/forum/comments.php?DiscussionID=304&Focus=1080#Comment_1080 Fri, 29 Jan 2010 02:56:09 +0000 extravaganzasd