How to select other plugin?

For developers using the Construct 2 Javascript SDK

Post » Thu May 08, 2014 6:16 pm

I got a plugin that acts like a array. And I would like create a second plugin that can then select one of the array plugins at edit-time to be added to them. I can't find anything in the sdk manual that looks like that. Could you point me in the right direction?
B
40
S
11
G
4
Posts: 665
Reputation: 8,443

Post » Fri May 09, 2014 3:42 am

https://www.scirra.com/manual/19/action ... xpressions
AddObjectParam(name, description);
B
108
S
26
G
260
Posts: 4,435
Reputation: 146,195

Post » Wed May 14, 2014 8:57 pm

rexrainbow wrote:https://www.scirra.com/manual/19/actions-conditions-and-expressions
AddObjectParam(name, description);


Won't this only work inside the Event Sheet? I want it to work in the properties bar if that is possible.

I tried it out. This gives me the Object Type. I need to access the Unique ID I suppose. I keep looking.
B
40
S
11
G
4
Posts: 665
Reputation: 8,443

Post » Wed May 14, 2014 11:57 pm

Yes, you could not get object type directly in properties table.
B
108
S
26
G
260
Posts: 4,435
Reputation: 146,195

Post » Wed May 14, 2014 11:59 pm

Well that clears that up. Thanks @rexrainbow :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,443

Post » Thu May 15, 2014 6:12 am

@Schoening

You are welcome, I had this requirement in my plugins, too. The only solution is assign at event sheet, or combining with my nickname plugin which could get object type by string.
B
108
S
26
G
260
Posts: 4,435
Reputation: 146,195

Post » Thu May 15, 2014 6:27 am

@rexrainbow

Feel free to pop in at https://www.scirra.com/forum/viewtopic.php?t=104579 every now and then. I will be listing the difficulties I am having there. (Rather than spamming the SDK forum with my question threads) :lol:
B
40
S
11
G
4
Posts: 665
Reputation: 8,443


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests