mounting / link points in script
by Steve D · in Torque Game Builder · 11/03/2009 (3:02 pm) · 0 replies
Hello everyone! I'll try and explain this as best I can, I am mounting a sprite to another sprite. For the object I'm mounting, I am cloning it and I also have a single link point towards the front of it (it's a rectangle shape) on to another rectangle with a slight offset in the mount command.
The problem is the shape is being mounted in the exact middle instead of it being mounted using the link point I defined in the editor. I'm not sure if this is a cloning issue or what so how do I correctly do this in script? Define a custom link point and mount the object using that link point instead of the default "center". I looked through the mount commands but don't see where I tell it what link point to use.
Thanks for any help!
The problem is the shape is being mounted in the exact middle instead of it being mounted using the link point I defined in the editor. I'm not sure if this is a cloning issue or what so how do I correctly do this in script? Define a custom link point and mount the object using that link point instead of the default "center". I looked through the mount commands but don't see where I tell it what link point to use.
Thanks for any help!