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.

Author
Message
Mugen Wizardry
User Banned
Posted: 2nd Sep 2010 13:46
How can I use my camera to rotate the camera towards the ground when u move the mouse up, and rotate the camera towards the ground when u move the mouse down?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 2nd Sep 2010 14:57
Look at the mousemovey command, the camera angle X command, and the wrapvalue command.

Break it down in to small ideas and work from that.

For example, If I move the mouse up rotate the camera down.



And there you go.

My signature is NOT a moderator plaything! Stop changing it!
Mugen Wizardry
User Banned
Posted: 2nd Sep 2010 18:51
thanks! This works. However, there IS one small glitch. How do I stop it from going all the way around on the x scale?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Alpha Mike
15
Years of Service
User Offline
Joined: 22nd Aug 2010
Location: Bristol, UK
Posted: 2nd Sep 2010 20:31 Edited at: 2nd Sep 2010 20:33
Ah! That will be an exercise for the reader.

Store the result of WrapValue(Camera Angle X()+MouseMoveY()) into a variable, then check to make sure that variable hasn't gone out of bounds. If it has set it to the limit, if it hasn't then leave the variable as is. Then set the XRotate Camera to the variable.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Sep 2010 01:24
I would have suggested some deductive reasoning myself...

Chris K
22
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 3rd Sep 2010 20:58
You want something like this...



-= Out here in the fields, I fight for my meals =-

Login to post a reply

Server time is: 2026-07-24 23:12:27
Your offset time is: 2026-07-24 23:12:27