• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I think a horizontal cam movemnt can be made with the mouse SCROLL (read)

Status
Not open for further replies.
Level 23
Joined
Apr 8, 2017
Messages
1,605
file.php




Examples
x = current camera angle

d = last camera angle




IF
"x" HIGHER THAN "d"
THEN
Rotate cam to the left


IF
"x" LOWER THAN "d"
THEN
Rotate cam to the right
 
A sentence or two can go a long way to describe the help you need. If this is about detecting scrolling then do these comparisons you mentioned on a .03125 interval. If the Angle of attack is lower then you scrolled down, otherwise it's up. You can then change the direction of what you want to move based on the scroll direction.
 
Level 9
Joined
Jul 30, 2018
Messages
445
I don't think there is a native to get the "value" of the mouse scroll? Haven't looked into the mouse scroll that deeply, but my gut feeling is telling it's pretty much hard-coded for the default zoom function.
 
Status
Not open for further replies.
Top