New version - Ninja2 + touchwrap
Older version -Ninja
When mouse/touch overlap instance with this behavior, the instance will be shown (visible = true), otherwise instance will be hidden (visible = false).
It can be used in scrolling button at boundary, like the arrow in this picture.
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/file-2.jpg" border="0">
(Image: gonzdevour)
edisone
Where do you use this behavior in your game?
rexrainbow i used it to hide a sprite on main layout...maybe i used it wrong,anyway i'm rebuilding the whole project...tnx for releasing it Rex ^^
I'm just interested where to use this behavior in others' project. Because this behavior seems useless. <img src="smileys/smiley36.gif" border="0" align="middle" />
Develop games in your browser. Powerful, performant & highly capable.
I'm generally in love with rexrainbow for creating so many plugins lately, and this one seems like a fun addition too.
But I'm a bit on the fence with behaviors serving a simple functionality you could easily create with events. Might keep new users from meddling as much with events as they should, therefore not having the best learning experience.
So, that's it for nitpicking. Please do keep those nifty plugins coming!
lol u right...but i'm so lazy and dumb..a premade functionality is better than create a new one or making by urself :D
PixelRebirth
Thanks. I agree that the beginner may not have enough learning experience.
For me, it's hard to find bugs in one event sheet with more than 100 events. A way to hide events is to use plugins, to make event sheet clearly.
The less events, the less effort to maintain.
Here is an example for showing how Ninja plugin works.
<img src="http://i1220.photobucket.com/albums/dd443/gonzdevour/NinjaSnail.jpg" border="0">
Game Demo: Move your cursor onto the menu and Left/Right side, see what happens.
http://dl.dropbox.com/u/31590694/NinjaSnail/index.html
Capx download:
http://dl.dropbox.com/u/31590694/NinjaSnail/NinjaSnail.capx
There must be other cleverer use,
the plugins' value depend on users' imagination.
It seems this behavior can be useful for interfaces. But just toggling visibility is not so pretty and is easily achieved through events. Maybe you could add a "fade in" and "fade out" parameter to make it more versatile.
Now thinking maybe it would be better to just make a fade behavior instead, since having only the mouse over trigger is too limiting. Then you could trigger it the way you want. And unlike the built in fade behavior you could make it fade in and out at anytime through actions, not making it just an automatic animation that fade in, wait and fade out (that is not much useful).
(that is not much useful).
Hi, Laser gun, I'm your fan!
Since you're a great artist, this function seems not enough for you,
but I think you'd like rex's new plugin "Gleam" in a few days.
......Or should I keep that as a secret, rex?
Good idea, gonzdevour.
I will release it at another thread.
-1 event for us free users :)
Update:
Add version to 1.0
ty Rex ^^
Hi guys,
this is my first post, so, hello anyone! <img src="smileys/smiley4.gif" border="0" align="middle" />
I basically found this Ninja plugin usefull for so many things, but the best i can think of is already used in the game SHANK
youtube.com/watch
Effect starting 1:30 where he goes in the stage and the frontpoles fade out.
I hope that was understandable.
Greetings from germany <img src="smileys/smiley1.gif" border="0" align="middle" /> and a happy new year