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.

Dark GDK / Using the mouse to controll X, Y rotate

Author
Message
3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 4th Nov 2009 23:56
Hello All,
I would like to know can you use the mouse to controll rotate left to right, And rotate tuning up and down?

Please give sample code...

THank you,

Here i am!!!
3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 5th Nov 2009 01:30
Hello all,
Here's what i come up with to controll with w,a,s,d and X,Y with mouse. Is there some kind of bug doing this? because the camera will flip out of know where...



Here i am!!!
SFCBias
15
Years of Service
User Offline
Joined: 8th Aug 2009
Location: Hephzibah, GA, USA
Posted: 5th Nov 2009 04:39
for what reason are you using both arrow keys and mouse to turn the camera? that may be your problem

if(You.AddCode.toPost)TGC.Users.CanHelp = true;
else return NoCodeMessage;
3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 5th Nov 2009 06:29
Huh?

I included my code here. I am really sure i am not using the arrow keys for my camera. I am asking is my code here is ok using
W,A,S,D for movement and mouse for camera rotate.

THank you,

Here i am!!!
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 5th Nov 2009 13:48
Not really SFC, i have done a game using arrows and mouse control at once, 3dmaster, take a look at dark dungeon code, i have found pretty useful code for using mouse to control the camera

3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 5th Nov 2009 18:38
Hello,
where can i find that code example at? dark dungeon code

Here i am!!!
3dmasters
14
Years of Service
User Offline
Joined: 3rd Nov 2009
Location:
Posted: 6th Nov 2009 22:46
Still need that code example for using W,A,S,D and the mouse rotating the camera. Can someone check out my code on the first post and see if that have a camera flipping bug too?

Thank you,

Here i am!!!

Login to post a reply

Server time is: 2024-10-01 16:33:36
Your offset time is: 2024-10-01 16:33:36