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 / How do I make the camera yaw to the right when I click the right button on the arrow keys.

Author
Message
new at programing
16
Years of Service
User Offline
Joined: 27th Dec 2007
Location:
Posted: 27th Dec 2007 23:42
I started to look around at darkGDK, I created the new>project, with a 3d game or something.
And I just don't it.... I added this:

And it doesn't rotate...I tried the dbXCameraRoll function and that works fine, but I don't need it to rotate, I need it to yaw to the right.

Please help someone.How would I make that camera yaw to the right when I click the rightKEY on the arrow keys.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Dec 2007 00:55 Edited at: 28th Dec 2007 00:56
cam Zero bro



The Mayflower
16
Years of Service
User Offline
Joined: 17th Dec 2007
Location: Plymouth, Massachusetts
Posted: 28th Dec 2007 03:27
Jason, don't confuse newcomers! I didn't even get what you said!

Hey newbie, try these functions:

dbRollCameraLeft()
dbRollCameraRight()
dbPitchCameraUp()
dbPitchCameraDown()

If you think you need other camera functions, try the DarkGDK documentation file. (In the Documentation folder)
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Dec 2007 04:05
Sorry... I looked back at this code and agreed with the complex thing - that was the wrong snippet. This uses only stock DarkGDK commands



new at programing
16
Years of Service
User Offline
Joined: 27th Dec 2007
Location:
Posted: 28th Dec 2007 12:02
Man...I feel so embarressed now...there are many commands that look the same, so I added dbTurnCameraRight and Left. And that's what I wanted.
DarkGDK is so easy to learn. You can even guess the commands and they'll work!
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 28th Dec 2007 13:28
And if you cant find something in the GDK help - open the DarkBasic Pro help - find what it is - then take a stab at typing dbSomeCommandName() until you find it and get the case right

Login to post a reply

Server time is: 2024-09-29 07:35:25
Your offset time is: 2024-09-29 07:35:25