How do I move only the selected object in a Family

Get help using Construct 2

Post » Sat Sep 05, 2015 5:56 pm

Hey!

I am currently working on a game where I have a "Heroes" family object set up, and I want the Player to be able to control multiple Heroes independently of each other.

The move order is in a function called "MoveUp" - which currently gets the Heroes family to simulate pressing Up for a period of time. The issue is when one Hero is selected and given a move order - the other Heroes on the map move as well.

Is there a way to just move the selected hero?

Thanks in advance.

Best,
Badmiracle
B
84
S
27
G
9
Posts: 89
Reputation: 9,613

Post » Sat Sep 05, 2015 6:03 pm

Have you tried using the Self function rather than family?
B
7
S
1
Posts: 54
Reputation: 527

Post » Sat Sep 05, 2015 6:49 pm

Well it seems like if I want to "Simulate Moving Up" in an action then I need to set an object, the object being the FamilyHeroes object.. how would I use the Self function instead?
B
84
S
27
G
9
Posts: 89
Reputation: 9,613

Post » Sat Sep 05, 2015 9:28 pm

Can you attach a capx or a screenshot? That way I know what you mean
B
7
S
1
Posts: 54
Reputation: 527

Post » Sat Sep 05, 2015 9:33 pm

Keep track of the current UID of the selected hero, and "Pick by UID" when you need to manipulate just that hero.
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067


Return to How do I....?

Who is online

Users browsing this forum: Felipiwi and 23 guests