How do I spawn an object based on Instance Variable?

Get help using Construct 2

Post » Fri Jun 17, 2016 10:26 pm

I need to know how to spawn an object based on there instance variable. Here is how I want it to be set up:

You set the instance variable of an object (obj1). When you click on the obj1, the obj1 should search a family for a object (obj2) that has the same instance variable as it. Once it finds it, it spawns it.

That it's how I want it to work.
In reality, it doesn't do that, it spawns an object from the family at random. Can you help?
*Insert Signature here*
B
13
S
5
Posts: 73
Reputation: 1,090

Post » Fri Jun 17, 2016 11:20 pm

You need this plugin.
plugin-nickname-behavior-nickname_t74522

The object created by the create action can not be influenced by any condition.
If you create a family, it picks a random from that family to create.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Fri Jun 17, 2016 11:27 pm

99Instances2Go wrote:You need this plugin.
plugin-nickname-behavior-nickname_t74522

The object created by the create action can not be influenced by any condition.
If you create a family, it picks a random from that family to create.

Thanks!
I'll try it out and see if it fixes my problem.
I'll tell you if it does.
*Insert Signature here*
B
13
S
5
Posts: 73
Reputation: 1,090

Post » Fri Jun 17, 2016 11:50 pm

99Instances2Go wrote:You need this plugin.
plugin-nickname-behavior-nickname_t74522

The object created by the create action can not be influenced by any condition.
If you create a family, it picks a random from that family to create.

It worked! Thank you!
*Insert Signature here*
B
13
S
5
Posts: 73
Reputation: 1,090


Return to How do I....?

Who is online

Users browsing this forum: evillair and 11 guests