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 / is there any way to make

Author
Message
Grenadiac111
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location:
Posted: 23rd Dec 2009 23:28
Im trying to make a simple first person game, but i can't figure out how to get the camera to move with the player properly.
I tried using the dbLockObectOn command but the entire view pane got distorted and if the player looked up and moved forward the player would fly,
I also tried the dbSetCameraToFollow command but the camera didn't do anything when even when i used the dbMoveObject command the camera didn't follow the object instead the object just kept moving until it was out of the cameras range.
Could someone please tell me how to get the first person camera to work properly.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 24th Dec 2009 00:58
Try out my example of a FPS movement:
http://forum.thegamecreators.com/?m=forum_view&t=156481&b=22

It's very easy to use, just add the class to your project explorer and add the 2 necessary functions (Setup and Update) and it's done.

The penguin faces south

Login to post a reply

Server time is: 2024-11-20 07:41:39
Your offset time is: 2024-11-20 07:41:39