Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / how do you use the mouse wheel

Author
Message
ssj3_shadow
23
Years of Service
User Offline
Joined: 12th Jan 2003
Location:
Posted: 20th Aug 2003 04:03
what i need to achive is thus.

when the user scrolls the mouse wheel down i need to zoom my camera in and when the user scrolls the mouse wheel out i need to zoom the camera out. any ideas how to do this?

i already have the camera set to the arrow keys so i can zoom all i need to do is set it to the scroll wheel
w00t -what does it mean?
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 20th Aug 2003 05:55


DivW
22
Years of Service
User Offline
Joined: 31st Jul 2003
Location: Scotland
Posted: 21st Aug 2003 21:37
Actually, i have a weird thing where moving the mousewheel couses my camera to roll around the z axis, so that my map ends up upside down. Rolling it again rights it. Anyone know how to stop that?

Your soul...it tastes like chicken
Moggie100
23
Years of Service
User Offline
Joined: 15th Oct 2002
Location: Behind You...
Posted: 22nd Aug 2003 04:37
If you're using the 'set camera view' command to zoom with, then its because you've inverted the direction that the camera is looking upside down.

Otherwise, check that you haven't used the same variable for the mousewheel's movement as the camera's z axis roll.

[img]www.geocities.com/weaponsmod/Banner.gif[/img]

Login to post a reply

Server time is: 2026-07-25 08:13:16
Your offset time is: 2026-07-25 08:13:16