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 / Help needed with Camera movement

Author
Message
Essal
18
Years of Service
User Offline
Joined: 15th Jan 2006
Location: inside your webcam, watching YOU.
Posted: 7th Sep 2009 00:31
Hey there,
I have just started using Dark GDK and Visual C++,
and though I think i have a fairly basic understanding of the commands i have used so far, (working on a test level, to learn more about how to use the commands)
I have gotten this far;


But what i want to do is the following;
Prevent the "player" from tilting the camera over/under itself.
I have searched the forums, but I just can't understand how to do this, So help would be appreciated. (bear in mind that I have very little experience with Darkbasic or c++)

I also can't figure out how to make the camera collide with the map (a dbo) , and I have downloaded the Sparkys collision stuff, but I really can't see how I am to use it. SO here help would also be appreciated greatly.

I hope someone here is able to help me with any of these problems

Thanks,
Essal

Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 7th Sep 2009 13:01
I'm not sure what you mean by "over/under itself", but if you want to limit camera rotation around the X axis, for example to prevent rotating the camera more than 50 degress up or down, then how about this?

Essal
18
Years of Service
User Offline
Joined: 15th Jan 2006
Location: inside your webcam, watching YOU.
Posted: 7th Sep 2009 14:10
Yeah thats what I meant
Thanks a million!

Login to post a reply

Server time is: 2024-11-20 15:28:34
Your offset time is: 2024-11-20 15:28:34