Families or what?

Get help using Construct 2

Post » Sat Dec 15, 2012 10:26 am

I made a test with the ragdoll example in the last C2 revision.
I create a new ragdoll with 12 pieces (head, chest, left arm, left forearm, and so on).
I put all this sprites in the family "ragdoll".
I create a behavior physics in the family ragdoll.
Create all the revolution joint and it works ok.

Now, at the beginning I set Immovable the family, so the ragdoll stay freeze. I made an event that when I click on the ragdoll with the mouse, the family became Movable. But, like in the examples of families, the only part that becames movable is the part I touch with the mouse.

My question is: how can I make ALL the sprites in the family movable when I touch with the mouse 1 object of the family "ragdoll"?

Hope u understand my english and hope to find a solution (for now, I put 12 event that say "when mouse on head, make it movable", "when mouse on arm, ..."... not so good if i think to put other ragdoll...

Maybe family is not the right choice, but they are very simple to use...
B
16
S
4
Posts: 35
Reputation: 2,292

Post » Sat Dec 15, 2012 12:16 pm

Maybe triggering desired events by variable would work. Something like that: capx
B
79
S
32
G
23
Posts: 119
Reputation: 14,937

Post » Sat Dec 15, 2012 12:35 pm

Great Scott! Or maybe, great Kastas!
Easy solution, thank'you very much!
B
16
S
4
Posts: 35
Reputation: 2,292


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests