Moving Child relatively to its parent.

For developers using the Construct 2 Javascript SDK

Post » Fri Mar 24, 2017 8:47 pm

Hi,
Suppose we have Sprite A and sprite B.
Sprite A is moving horizontally while B have the sine behavior set on horizontal.
Does anyone have an idea on how to make a behavior that would make Sprite B move in sprite A coordinate system ? So that B "follow" A but still freely moving itself.

Having Sprite B pinned to A would make B follow A but B won't be able to move anymore.

Sorry if I was verbose.
B
20
S
9
G
3
Posts: 41
Reputation: 3,126

Post » Fri Mar 24, 2017 10:55 pm

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat Mar 25, 2017 7:44 pm

Thanks so much for your time.
I was doing the same but now I discovered that it wasn't working because the positions were overrided by another behavior.
Anyway, kind of fixed now.
Thanks.
B
20
S
9
G
3
Posts: 41
Reputation: 3,126


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 1 guest