Picking specific family objects

Get help using Construct 2

Post » Thu Sep 19, 2013 7:52 am

As always thanks to anyone taking the time reading this and trying to help.


So I'm trying to figure out condition/action for the following:-

family has 100 objects so individual events seems overkill

condition
mouseclick on family.object1(could be object1-100)

action
create family.object1 (needs to create the same object that was clicked on)

tried a bunch of stuff from mouseover to nickname and keep getting action random family.object

thanks again for any helpBaxidur2013-09-19 07:56:30
B
6
S
1
Posts: 20
Reputation: 815

Post » Thu Sep 19, 2013 8:23 am

Do you have a capx example?

From your previous post, since you had already assigned id as instance variable on the object, so on mouse click on object, store the id of the clicked object and create the object with condition id=storedID.
B
17
S
8
G
4
Posts: 93
Reputation: 3,190

Post » Thu Sep 19, 2013 8:29 am

Its a different family, I could set ID's, but how do I store/retrieve the ID?Baxidur2013-09-19 10:39:00
B
6
S
1
Posts: 20
Reputation: 815

Post » Thu Sep 19, 2013 11:09 am

feel like I'm going in circles still can't find any system or family options to save the uid or an instance variable that will then let me create the same uid or instance variable all within the same single mouse click on object, whatever I try It just seems to pick a random object from the family to create.Baxidur2013-09-19 11:11:39
B
6
S
1
Posts: 20
Reputation: 815

Post » Sun Sep 22, 2013 2:18 am

As far I know it's impossible to create specific object from a family by adding filters to that object.. independently it will always spawn a random family object... that was one of the features I always asked for.. in construct 1 that's possible to control and it would a very welcome thing to C2.
B
32
S
6
G
5
Posts: 437
Reputation: 6,119


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Yahoo [Bot] and 64 guests