So basically I have a map where you only have two units, an active unit which you can control, and a passive unit that follows the active unit. Now so far I've set up the camera so that it follows the active unit. The active unit is in a unit group called "active" and the camera is set to follow that unit group. Now when the active unit dies it is immediately removed from the unit group active and the passive unit in put in the unit group active in its place. (Basically your active unit dies, your passive unit takes it's place)
Then I instruct the camera to follow the active unit again and it does end up following the new active unit... But the camera returns to its default position before moving to follow the new active unit. This doesn't make for the nice smooth transition that I want when the camera switches.
How can I get the camera to not jump to it's default position before following the new active unit and instead just move over to the new active unit automatically?
Perhaps you should use a point as a middleman, and update/follow that point instead of the units? Points are more generic so you can move it to other places as your game develops.
That's what I originally thought would work, but the problem is that the only trigger for camera following is "Follow Unit Group With Camera" there is no trigger for following regions or points with a camera that I've been able to find.
There's no reason you can't clear the follow camera, pan the camera with another action to the other units, and then re-engage the follow camera again to make it smooth.
So basically I have a map where you only have two units, an active unit which you can control, and a passive unit that follows the active unit. Now so far I've set up the camera so that it follows the active unit. The active unit is in a unit group called "active" and the camera is set to follow that unit group. Now when the active unit dies it is immediately removed from the unit group active and the passive unit in put in the unit group active in its place. (Basically your active unit dies, your passive unit takes it's place) Then I instruct the camera to follow the active unit again and it does end up following the new active unit... But the camera returns to its default position before moving to follow the new active unit. This doesn't make for the nice smooth transition that I want when the camera switches.
How can I get the camera to not jump to it's default position before following the new active unit and instead just move over to the new active unit automatically?
Perhaps you should use a point as a middleman, and update/follow that point instead of the units? Points are more generic so you can move it to other places as your game develops.
@Monkalizer: Go
That's what I originally thought would work, but the problem is that the only trigger for camera following is "Follow Unit Group With Camera" there is no trigger for following regions or points with a camera that I've been able to find.
There's no reason you can't clear the follow camera, pan the camera with another action to the other units, and then re-engage the follow camera again to make it smooth.
@hobbidude: Go
Panning the Camera to an attached region on the unit fixed it Ty for the suggestion didn't think I needed to add a pan action.