Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I would like to do a map that uses key presses during the hero selection part to scroll through camera's what is a basic trigger for doing this? so the player can view the hero types?
Player - Player 1 (Red) Presses the Left Arrow key
You store your cameras in an array in correspondence to the order and count an integer variable up/down when the key is pressed that is then used as an index in the array. If you are at max and would normally increase, you revert to min and vice-versa.
could someone create a sample map, im mainly stuck on the array side of things. I can change camera pressing different buttons just not scroll through the same cameras
Use a state machine with edges being triggered by the keyboard arrow events.
When in a state the camera behaves in a certain way. This is usually done by disabling the systems of the other camera states and turning on the system of the camera state you have just changed to.
Unlike VHDL where all statements in a process are performed instantaneously, JASS executes statements sequentially so it is very inefficient to reset all state logic at the start of a state transition event. You should instead model each edge of the state machine as a separate case making sure to change only the necessary to go from one state to another. Especially if one of the state edges requires changing of settings of a single camera system it can save on re-loading the entire system.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.