How do I Make a pinned sprite move in a track like a train.

Get help using Construct 2

Post » Sun Mar 09, 2014 9:02 pm

I want to make a sprite pinned to the other move in line with the master sprite. Think of a train and it's cars. I've tried a few options with physics and I'm just not getting the result I want. For some reason the pinned sprite moves along with the sprite it's pinned to but it doesn't move like it's connected like train cars.

I don't know how to explain this very well but I hope someone knows what I'm talking about.

Thank you.
B
12
S
4
G
2
Posts: 132
Reputation: 1,749

Post » Mon Mar 10, 2014 7:22 pm

You can add pin behavior to the train, the add condition:
On start of layout: pin (trains) to (master trains) by Rope-style.
Hope it helps
ImageImageImageImageImage
B
57
S
16
G
5
Posts: 852
Reputation: 11,536

Post » Mon Mar 10, 2014 7:26 pm

This may or may not be what you're after, but I would recommend checking out the MoveTo plugin (top of the list):
c2-plugins-and-behaviors-list_t65170

The rope-style pin may help as well, I suppose; I haven't experimented with that one yet.
B
7
S
1
G
1
Posts: 56
Reputation: 732


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 26 guests