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 / move camera w/ mouse

Author
Message
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 24th Jan 2010 02:34
hey,i am sure this has been asked a billion times but

how do you move the camera in a fps w/ a mouse
Aldur
17
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 24th Jan 2010 02:39
There are plenty of DGDK and DBP snippets of FPS camera movement in the forums,
there is a search button down the bottom of every forum page.

It's quite useful

tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 24th Jan 2010 02:45
ok,NM,i found a tutorial on it
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 24th Jan 2010 03:17
ok,the tutorial was useless

just got a bunch of errors
Aldur
17
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 24th Jan 2010 03:24
Post the code or tutorial and your error messages and I'll see what I can do!

tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 24th Jan 2010 03:27
the code


the errors

Aldur
17
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 24th Jan 2010 03:38
I think you should learn the basics of C++ before attempting to write a game with DGDK, but if you still wish to continue I can help you with a couple of errors so you can work out the rest.

Line 13 - void mouse( void )
Error message - 'void' should be preceded by ';'
So your line 13 should be - void mouse(void);

These are really quite simple errors, I'm not quite sure how you didn't work this out by yourself?

Your main game loop is missing its parenthesis, and a lot of your commands aren't being preceded by ';'

There are some good C++ tutorials over at http://www.cplusplus.com

I strongly recommend learning the basics atleast.

tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 24th Jan 2010 03:40
thanks,now i look dumb

sorry for the bother
Aldur
17
Years of Service
User Offline
Joined: 8th Oct 2007
Location: Melbourne, Australia
Posted: 24th Jan 2010 03:42
Everyone starts at square one mate, it's nothing to apologise for!
I'm still very new to C++ and make a lot of silly mistakes and errors a lot!

Good luck with the learning.

Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 25th Jan 2010 22:53
@tvzen: dont worry... I have been programming for 12 years and I'm also new to C++

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
tvzen
14
Years of Service
User Offline
Joined: 3rd Dec 2009
Location:
Posted: 25th Jan 2010 22:54
thanks for the support

Login to post a reply

Server time is: 2024-11-20 05:23:29
Your offset time is: 2024-11-20 05:23:29