[Behavior] Ninja

Post your completed addons to share with the community

Post » Fri Nov 18, 2011 9:54 am

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.


(Image: gonzdevour)rexrainbow2013-05-16 15:03:58
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Fri Nov 18, 2011 10:02 am

@edisone

Where do you use this behavior in your game?
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Fri Nov 18, 2011 10:07 am

@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 ^^
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

Post » Fri Nov 18, 2011 10:11 am

I'm just interested where to use this behavior in others' project. Because this behavior seems useless.
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Fri Nov 18, 2011 10:13 am

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!
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Fri Nov 18, 2011 10:17 am

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
B
159
S
38
G
11
Posts: 229
Reputation: 17,361

Post » Fri Nov 18, 2011 10:31 am

@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.rexrainbow2011-11-18 13:26:21
B
97
S
22
G
178
Posts: 4,120
Reputation: 104,047

Post » Sat Nov 19, 2011 10:13 am

Here is an example for showing how Ninja plugin works.



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.
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Post » Sat Nov 19, 2011 3:24 pm

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).
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Sat Nov 19, 2011 4:33 pm

[QUOTE=Animmaniac] (that is not much useful).[/QUOTE]

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?
B
106
S
27
G
8
Posts: 209
Reputation: 12,525

Next

Return to Completed Addons

Who is online

Users browsing this forum: ggman and 3 guests