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 / Problems with controlling the player-model

Author
Message
MES
16
Years of Service
User Offline
Joined: 9th Feb 2008
Location: AFK
Posted: 27th Mar 2008 14:29
Hello,
I'm creating a third person game, and i want the camera to move around my player-model, but it moves only around itself, so the player dissapears from the screen.
Here is the code i use at the moment:



In the main Loop I use this:

What do I have to change?
All other stuff is working correctly, the player turns around etc.

kind regards

MES
Movian
16
Years of Service
User Offline
Joined: 5th Mar 2008
Location:
Posted: 27th Mar 2008 15:50 Edited at: 27th Mar 2008 15:51
http://forum.thegamecreators.com/?m=forum_view&t=126230&b=22
here is some code i posted that works nicely as a basic mouse controlled third person camera
just pass it the object that you wish to rotate around and it should produce the desired effect
a camera that on right mouse click rotates around the object (or gives the illusion of doing so

Login to post a reply

Server time is: 2024-11-20 05:42:59
Your offset time is: 2024-11-20 05:42:59