- Joined
- Nov 25, 2013
- Messages
- 132
Hi good people of hive! I'm trying to make a bridge using invisible platforms but when a unit walks on it the camera zooms in and i cant see the unit anymore. Is there a way to fix this kind of problem?
You need increase Camera paramateres like distance.Hi good people of hive! I'm trying to make a bridge using invisible platforms but when a unit walks on it the camera zooms in and i cant see the unit anymore. Is there a way to fix this kind of problem?
Camera objets is set of static camera parameters, it is mostly used for cinematics.Also do i have to create cameras or i could just trigger them? I was also wondering if what are those cameras for?
Hi good people of hive! I'm trying to make a bridge using invisible platforms but when a unit walks on it the camera zooms in and i cant see the unit anymore. Is there a way to fix this kind of problem?
Do you use any camera system? Naturally the camera never zooms in automatically
Camera objets is set of static camera parameters, it is mostly used for cinematics.
No i havent used camera systems yet and i raised the invisible platform high like really high
Yes, but don't forget. Mouse wheel scroll returns everything back to normal camera values. You need to store real = camera height and periodic event 001 which will keep camera height you want.Then the easiest way is to set a camera height by command:
Then the easiest way is to set a camera height by command:
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -cam as A substring
Player - Player 2 (Blue) types a chat message containing -cam as A substring
Player - Player 3 (Teal) types a chat message containing -cam as A substring
Player - Player 4 (Purple) types a chat message containing -cam as A substring
Player - Player 5 (Yellow) types a chat message containing -cam as A substring
Player - Player 6 (Orange) types a chat message containing -cam as A substring
Conditions
Actions
Camera - Set (Triggering player)'s camera Height Offset to (Real((Substring((Entered chat string), 6, (Length of (Entered chat string)))))) over 0.00 seconds
Type -cam 330 will set the camera higher for player.
If you want it to be more automatic, experiment more and find the appropriate height. Then set a region and change it when a player's unit enters (just an idea, not test yet).
Yes, but don't forget. Mouse wheel scroll returns everything back to normal camera values. You need to store real = camera height and periodic event 001 which will keep camera height you want.
Yeah i tried setting height using periodic timers and it works fine except when walking on invisible platforms it zooms in. You could try raising the platform really high and tell me what you think
I tried it and I only saw my hero disappear from the screen due to changing height, not "zooming". View attachment 255945
I don't think you want to understand, with that trigger,you LET the player set camera height BY themselves.
Periodic trigger setting camera height needs variables, that's why it is call automatic. By doing this, you need ZLibrary to get the UnitZ and set the camera height accordingly.
Take This template for your map. The camera height reacts on height of your unit. It's quite simple to implement into your project.
For multiplayer you need to set camera height for each player who owns hero. I've made a trigger for one player.Ok will try it out as soon as i can. Thanks and i hope it works for multiplayer.