[Plugin] Nickname, [Behavior] Nickname

Post your completed addons to share with the community

Post » Sat Sep 14, 2013 11:07 am

I have made a small modification to your example to emphasise the point I want to make.

https://dl.dropboxusercontent.com/u/79803565/NickName%20Pick%20instance.capx

The concern is that the Family: rotate 45 degrees event, can now have two separate outcomes, depending on the context where they are used. This introduces an ambiguity into Construct 2 which I would have thought is not good. The first use of the event, rotates just the instance created. The last use rotates the entire family.

It seems that you modify the select instance of a Family to achieve this? How long does this last, until the end of the event block? Perhaps a better implimentation would be to have an Nickname : SOL : Pick last instance?

Hope there are no misunderstandings of how plugins work in the above. Really love the plugin and will continue playing with it. Thank you.
B
12
S
4
Posts: 67
Reputation: 1,235

Post » Sun Sep 29, 2013 6:35 am

Excellent! Just what I needed.
B
6
S
1
G
1
Posts: 4
Reputation: 366

Post » Mon Sep 30, 2013 4:19 am

@AngelEyes

Yes, I modified the SOL of the family if user used the action which had family parameter. You could use the other one action which did not have the family parameter. However, it would not pick the created instance.
The solution was, user might use "condition:on create" to do something after creating instance.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Dec 31, 2013 8:52 pm

I love this plugin. The real awesomeness of this comes from the ability to create multiple instances in one event, if you could do the same for deleting that would be incredible.

Destroy "Nickname" at (x,y)
Destroy "Nickname"
Noncentz7052013-12-31 22:11:12
B
10
S
2
G
1
Posts: 202
Reputation: 1,535

Post » Wed Jan 01, 2014 6:30 am

@Noncentz705

You might put all possible types into a family, then use "condition:pick by UID" to pick the deleted target (put into this family), then destroyed it.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Fri Jan 24, 2014 6:08 pm

@rexrainbow

i wonder if its possible to initiate all object nicknames by a loop,
i tried some things, but didn't work

lets say you have all your objects on a layout, and you put them in .x order the way you like, then you do a sort by family.x and set the nickname to "obj" & loopindex

its great as it is, but would make a great addition, if its not already possible
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Tue Feb 04, 2014 8:31 pm

I've had this plugin/behaviour sitting in my C2 directory and never thought to actually try and use it, but I've given it a shot, and by god it's EXTREMELY useful! Thank you for making this beast of a plugin!Jase002014-02-04 20:31:24
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

Post » Wed Feb 05, 2014 8:03 am

@vtrix

You might use nickname behavior to assign nickname(string) at properties table. It might be more clearly.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Wed Feb 05, 2014 10:52 am

@rexrainbow, yes im using it, its great!, my suggestion would only be usefull if you got like 30+ objects you could generate something like obj25, but i agree its better that you tag it.
ImageImage
B
61
S
19
G
6
Posts: 809
Reputation: 9,028

Post » Thu Feb 06, 2014 10:08 pm

If I were to make the most tiniest of tiny suggestions (it's really not insanely important but would be nice), is if there were an "Does Nickname exist?" event. I'd use it if it were there :P Again though, awesome plugin! Thank you!
B
45
S
19
G
10
Posts: 562
Reputation: 9,543

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: Kev5454, Kyatric, Lordshiva1948 and 7 guests