any one please solve this issue.
Simple Apps
Member Posts: 158
how can I make an actor follow another moving actor like a train compartment.
if suppose there are 2 actors A and B
A is a train engine and How can B follow A like a train compartment.
Any one please solve this problem which I am unable to find a solution.
Comments
Need 2 attributes. Train x, train Y. Real.
In train a actor.
Constrain train x to train self position x.
Constrain train y to train self position Y.
In actor B.
Constrain actor b self position x to attribute train x -100
Constrain actor b self position y to attribute train y.
you can play with the -100 to the distance you need.
No matter where A is actor B will be 100 behind it.
Hope that helps.
@Simple Apps Also check out GSInventions' @timolapre1998 and @CodeMonster 's Snake. It does the same trick and even adds carriages... well, so what if it is by eating them!
http://forums.gamesalad.com/discussion/70006/a-lot-of-free-templates-by-gsinvention-com#latest
Snake 2 [Smooth]
Socks' fast constrain method looks like it would be useful.
http://forums.gamesalad.com/discussion/75220/fast-constrain-linkmachine-v2