SC2Mapster Forums

Development > Triggers

Camera Follow Unit Group Problems With Switch Units

  • 5 posts
    #1 Nov 26, 2012 at 07:11 UTC - 0 likes

    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?

    #2 Nov 26, 2012 at 08:05 UTC - 0 likes

    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.

    Last edited Nov 26, 2012 by Monkalizer
    #3 Nov 26, 2012 at 08:15 UTC - 0 likes

    @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.

    Last edited Nov 26, 2012 by LitePollution9
    #4 Nov 26, 2012 at 08:43 UTC - 0 likes

    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.

    When I want your opinion...I'll give it to you!

    http://www.sc2pod.com/achievement.php?id=13361

    #5 Nov 26, 2012 at 09:33 UTC - 0 likes

    @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.

  • 5 posts

You must login to post a comment. Don't have an account? Register to get one!