Create Object By Name

Discussion and feedback on Construct 2

Post » Thu Feb 05, 2015 4:42 pm

Really? It keeps not working on my side. When using "tap", a random object is created, not the one that I want. And using "on any touch start", nothing happens at all. Did you check my capx?
B
11
S
3
G
3
Posts: 206
Reputation: 2,379

Post » Thu Feb 05, 2015 5:01 pm

@Kan

I got it, it need to click many times.

Okey, Here is the fixed version.
I set the name on nickname behavior directly without any event. The origin problem is, the name had been assigned to family type, not the object type.
B
100
S
23
G
198
Posts: 4,216
Reputation: 114,422

Post » Thu Feb 05, 2015 9:04 pm

@rexrainbow
Thank you for taking it the time to show me. This plugin might save me a lot of events in future games. (by the way it also works with "on tap")

One last thing, I take it as there is no way to assign a nickname to an object at runtime, then create the object? The nickname must be manually assigned by the game's creator and can't be assigned from a variable or from code while the game is playing, or the "create instance" action will not work?
B
11
S
3
G
3
Posts: 206
Reputation: 2,379

Post » Fri Feb 06, 2015 2:38 am

@Kan

The "Action:Assign nickname" in rex_nickname plugin is used to set name of an object (not a family) at runtime.
B
100
S
23
G
198
Posts: 4,216
Reputation: 114,422

Post » Fri Feb 06, 2015 3:58 am

Alright, I'll keep that in mind. Thanks @rexrainbow for this great plugin and behaviour and for the help.

And if ever you have time to implement assigning nickname to families, that'd be even greater. :)
B
11
S
3
G
3
Posts: 206
Reputation: 2,379

Post » Fri Feb 06, 2015 4:43 am

@Kan

It would be confused. Family is another kind of object type which user might want to be assigned.

If you had a lot of object types and did not care the names, you could change the "Mode" to "SID" in properties table of rex_nickname behavior.
B
100
S
23
G
198
Posts: 4,216
Reputation: 114,422

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest