How do I - Link Sprites

Get help using Construct 2

Post » Fri Mar 03, 2017 4:13 pm

Hi

I am making a game where the main sprite has 6 thrusters - 3 on top and 3 on bottom. Depending on certain variables, they can be on in a variety of combinations. Is there a way I can link sprites together so they can effectively layer on top of each other switching on and off as needed, rather than needing to create a series of if statements that accounts for every possible combo (front down + back up + mid down or front-down + mid up) etc.

Thanks!
B
3
Posts: 2
Reputation: 179

Post » Fri Mar 03, 2017 4:31 pm

Pin behavior, let's you join objects together.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003

Post » Fri Mar 03, 2017 4:43 pm

daverage wrote:Hi

I am making a game where the main sprite has 6 thrusters - 3 on top and 3 on bottom. Depending on certain variables, they can be on in a variety of combinations. Is there a way I can link sprites together so they can effectively layer on top of each other switching on and off as needed, rather than needing to create a series of if statements that accounts for every possible combo (front down + back up + mid down or front-down + mid up) etc.

Thanks!


Shinkan gave you the right answer and Pin should work for that. You can also use physics joints but that is more for objects you want to move using physics commands requiring gravity and other settings.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,830

Post » Fri Mar 03, 2017 7:49 pm

Seems so obvious now - many many thanks!
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: gameba and 4 guests