I currently have a trigger setup that focuses on the player's unit (each player has 1).
It uses the action "Make the camera look at and follow unit for player x"
I also have it using the action "Zoom camera for player x at (Start location of player 1) from ((Real(Default Camera Distance)) + 8.0) to Default Camera Distance over 1.5 seconds"
these two trigger at map start and it mostly works
it zooms in on the player and follows the player when i move the thing around
the problem I am having is the way that camera zooms in and out depending on where you move. It zooms too close when i move close to the bottom of my screen and it zooms too far out when i drive away from the bottom of the screen
If anyone has any idea how I can limit how far the camera goes in and out from the unit that would be great
its a common mistake to use "LOOK AT" this means the camera wont move from its current spot.
Try this out, and see if you like it, if not, we can indeed set how close the camera is allowed to get.
<<code>>
Camera - Follow for player 1 (Last created units) with the camera and Clear Current Target
<</code>>
and just set the unit inot the unit group. this will make the camera follow the unit instead of "look at" and follow.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
Thanks, this is much closer to what I was looking for.
I still would like it if the unit could stay centered on the screen instead of getting close to the edges..this makes it difficult to control as a race car
Hi, you can try to adjust the camera distance settings to affect your zoom. As for following your race car, not sure if it's what you want, but you can try and play around with the camera's scroll rate values in the data editor, like setting follow acceleration and deceleration to 0.
You can check out OneTwo's WoW map, I followed what he did, and got the camera to follow my unit instantly. Hope that helps :)
Hello,
I am making my first map and it is a racing game.
I currently have a trigger setup that focuses on the player's unit (each player has 1).
It uses the action "Make the camera look at and follow unit for player x"
I also have it using the action "Zoom camera for player x at (Start location of player 1) from ((Real(Default Camera Distance)) + 8.0) to Default Camera Distance over 1.5 seconds"
these two trigger at map start and it mostly works
it zooms in on the player and follows the player when i move the thing around
the problem I am having is the way that camera zooms in and out depending on where you move. It zooms too close when i move close to the bottom of my screen and it zooms too far out when i drive away from the bottom of the screen
If anyone has any idea how I can limit how far the camera goes in and out from the unit that would be great
its a common mistake to use "LOOK AT" this means the camera wont move from its current spot.
Try this out, and see if you like it, if not, we can indeed set how close the camera is allowed to get.
<<code>>
Camera - Follow for player 1 (Last created units) with the camera and Clear Current Target <</code>>
and just set the unit inot the unit group. this will make the camera follow the unit instead of "look at" and follow.
Thanks, this is much closer to what I was looking for.
I still would like it if the unit could stay centered on the screen instead of getting close to the edges..this makes it difficult to control as a race car
I would also like to zoom out a little bit
Hi, you can try to adjust the camera distance settings to affect your zoom. As for following your race car, not sure if it's what you want, but you can try and play around with the camera's scroll rate values in the data editor, like setting follow acceleration and deceleration to 0.
You can check out OneTwo's WoW map, I followed what he did, and got the camera to follow my unit instantly. Hope that helps :)
use camera pan (wink)