- Joined
- Feb 17, 2008
- Messages
- 10
Basically, What I'm trying to do is have one unit "attach to the other". Not exactly permanantly, but until the player detaches them with input.
The scenario is one unit, unit A, will use an item that creates another unit, unit B. After unit B appears, Unit A "attaches itself" such that it is in the same location as Unit B, even if unit B is told to move, stop, etc...
The way I have this done right now is when Unit B appears, Unit A's collision is turned off, and every .02 seconds or whatever, Unit A is instantly moved to unit B. It works, but Unit B's movement is very choppy and sometimes stops altogether when told to move.
There must be a better way to do this. btw, they must both be ground units (no flying).
The scenario is one unit, unit A, will use an item that creates another unit, unit B. After unit B appears, Unit A "attaches itself" such that it is in the same location as Unit B, even if unit B is told to move, stop, etc...
The way I have this done right now is when Unit B appears, Unit A's collision is turned off, and every .02 seconds or whatever, Unit A is instantly moved to unit B. It works, but Unit B's movement is very choppy and sometimes stops altogether when told to move.
There must be a better way to do this. btw, they must both be ground units (no flying).