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 / Advanced Camera Movement / Follows Object

Author
Message
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 16th May 2009 01:21
First off, let me show you my code for the camera movement,


Now my issue is somewhat small but an annoying one at that, it seems as if every time I Right-Click after I have moved the mouse at all it snaps to that position (as if you were holding the right click in and moving the mouse but it only updated the view after you let go) I can see in the code WHY this is happening, but im not sure what to do to stop it from happening.

Thanks for your input!!
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 17th May 2009 10:07
I would like to repost the code I have so far, for my camera controls, since the issue is still there i've just moved onto other things that neec accomplished. =]

Main Camera Function:


Function that actually sets up the object 3 and 4:


Oh and setup_player is being called first and only once. Where as camera_control is called every frame.
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 18th May 2009 10:32
I figured out what I needed to do on my own! =D

Login to post a reply

Server time is: 2024-10-06 15:27:10
Your offset time is: 2024-10-06 15:27:10