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. <img src="smileys/smiley36.gif" border="0" align="middle" />
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... <img src="smileys/smiley11.gif" border="0" align="middle" />
Maybe family is not the right choice, but they are very simple to use...
Develop games in your browser. Powerful, performant & highly capable.
Maybe triggering desired events by variable would work. Something like that: capx
Great Scott! Or maybe, great Kastas! <img src="smileys/smiley32.gif" border="0" align="middle" />
Easy solution, thank'you very much! <img src="smileys/smiley42.gif" border="0" align="middle" />