Sorry to steal your thunder, cacotigon, but I couldn't resist.
I got it working for you smitchell:
The easiest setup for this scenario, rather than keeping track of the last created instance, is just picking the one furthest from 0,0. In this case, since all the carriages are in a straight line, that'll always be the last one.
I always changed the origins of each of the train cars since they weren't lining up properly. It was possible to make it work the way it was before, but this way is much simpler.
Lemme know if you need me to explain anything else I did!SullyTheStrange2012-02-14 18:14:45