I'll just jump right into my problem. I've set the playable map area to the max (at the edge of the map), and I have a trigger that sets the camera bounds to the edge of the map. For some reason I'm unsure of however, it seems the max camera bounds are the default camera bounds, and so it won't actually set the bounds to the edge. This is really annoying since I need the camera to be able to follow units very close to the edge of the map, but the camera cannot follow correctly because the bounds are pushing it back. Any ideas on how I could set the camera bounds to the edge properly?
Well, as far as I know, the max camera bounds can't be moved further than what you can achieve with the map options, as in warcraft 3. Granted I haven't looked into it alot.
The camera bounds trigger is probably mostly used for forcing your camera to stay within a specific area of the map rather than expand it to the very edge.
I realise this might not be applicable to your map, but I usually make the outer edge of the map something you can't reach, using mountains or water to cut you off from the camera bounds.
I've done a bit of testing, and it seems that when the camera is forced near the edge of the map the screen turns black (although oddly enough this only happens with the west and north edges and not with the south edge. I haven't tested the east edge), so I will probably just have to shift the terrain a bit to keep it away from the edge. Thanks for the input though! :)
this is probably a necro, but i'll contribute for the sake of anyone searching for this solution.
I haven't tried this, I don't know if it will work for your purposes, but I would simply redefine the edge of your playable map by making it smaller than the maximum capacity of your map and hiding terrain cells outside your playable area. This way you can have a camera at the edge of the playable area without the limitations of the true edge of the map.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'll just jump right into my problem. I've set the playable map area to the max (at the edge of the map), and I have a trigger that sets the camera bounds to the edge of the map. For some reason I'm unsure of however, it seems the max camera bounds are the default camera bounds, and so it won't actually set the bounds to the edge. This is really annoying since I need the camera to be able to follow units very close to the edge of the map, but the camera cannot follow correctly because the bounds are pushing it back. Any ideas on how I could set the camera bounds to the edge properly?
Well, as far as I know, the max camera bounds can't be moved further than what you can achieve with the map options, as in warcraft 3. Granted I haven't looked into it alot.
The camera bounds trigger is probably mostly used for forcing your camera to stay within a specific area of the map rather than expand it to the very edge.
I realise this might not be applicable to your map, but I usually make the outer edge of the map something you can't reach, using mountains or water to cut you off from the camera bounds.
I've done a bit of testing, and it seems that when the camera is forced near the edge of the map the screen turns black (although oddly enough this only happens with the west and north edges and not with the south edge. I haven't tested the east edge), so I will probably just have to shift the terrain a bit to keep it away from the edge. Thanks for the input though! :)
@Rideanovan: Go
this is probably a necro, but i'll contribute for the sake of anyone searching for this solution.
I haven't tried this, I don't know if it will work for your purposes, but I would simply redefine the edge of your playable map by making it smaller than the maximum capacity of your map and hiding terrain cells outside your playable area. This way you can have a camera at the edge of the playable area without the limitations of the true edge of the map.