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.
Development > Triggers
Camera Follow Unit Group Problems With Switch Units
- 5 posts
-
Monkalizer Author
- Battle.net
- Monk
- #2491 EU
- Join date
- Sep 22, 2011
- Location
- Sweden
- Reputation
- 4
- Posts
- 212
- Projects
- 1
- Online now!
Last edited Nov 26, 2012 by Monkalizer -
LitePollution9 Regular Shmoe
- Join date
- May 05, 2011
- Location
- United States
- Reputation
- 17
- Posts
- 125
- Team
- Last login
- Apr 23, 2013
@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 -
hobbidude Author
- Battle.net
- push
- #388 NA
- Join date
- Sep 29, 2010
- Location
- Canada
- Reputation
- 15
- Posts
- 299
- Projects
- 1
- Teams
- Last login
- May 19, 2013
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!
-
LitePollution9 Regular Shmoe
- Join date
- May 05, 2011
- Location
- United States
- Reputation
- 17
- Posts
- 125
- Team
- Last login
- Apr 23, 2013
- 5 posts
LitePollution9 Regular ShmoeSo 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?
Alien Boombox - The Free Online Music Player Web App
Alien Boombox - Skinnable Music Player Screenshots