Can I pin objects to Spriter animation sub-objects?

Get help using Construct 2

Post » Wed Dec 24, 2014 10:23 pm

This is a little specific, but their forums don't let one sign up currently (some bug) so I'll ask here:

Is it possible to pin sprites to a sub-object (say a limb) of a Spriter animation? How would one do that?
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Thu Dec 25, 2014 6:12 am

Are you asking how to use the pin behavior? because I don't think there's any restriction that you can't pin to a sub-object
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Thu Dec 25, 2014 7:01 am

I'm asking if sub objects from spriter are somehow accessible to events. Like, say, a hand of a character.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Thu Dec 25, 2014 7:08 am

I'm not sure if I get you. But if the "body" and "hand" are separate objects and the hand is pinned to the body, you can use

"Pick by comparison" like this

Pick "hand" which body.UID = hand.pin.pinnedUID

It means even if there are more than 1 hand object instance in the layout, you're picking the hand that's specifically pinned to the body. Just add another condition if there are multiple body instances in the layout select which (or "for each" condition) instance of body object.
B
16
S
7
Posts: 301
Reputation: 2,726


Return to How do I....?

Who is online

Users browsing this forum: Christmas, Lancifer and 28 guests