How do I pin a turret onto a moving object?

Get help using Construct 2

Post » Thu May 19, 2016 7:01 am

Hi everyone

I'm creating a singleplayer boat shooting game and the enemies are boats with turrets pinned to them... That's what I planned for.
As soon as the boat starts moving, the turret doesn't move and just stays perfectly still, not pinned onto the boat. Are the Turret and Pin behaviors not compatiable?

If I could get a reply ASAP, that would be amazing.

Cheers
-Reconnaissance
B
10
S
3
Posts: 8
Reputation: 658

Post » Thu May 19, 2016 7:20 am

If you use 'pin'. You have to pin it in an action. A specific instance to another specific instance.

With 1 boat you just do it in the 'on start of layout.

But i suppose you will have more boats. Then you have to do it on creation. Preferable combined with the use of containers.

Logic:

Create the boat. (when using a container it will auto create the turret)
Place the turret (it will be automaticaly in a picked state, so no additional picking needed)
Pin the turret to the boat. (due the container the right boat and the right turret wil be picked)
B
33
S
18
G
27
Posts: 2,435
Reputation: 20,334


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86 and 7 guests