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 / dbObjectScreenX() with more than 1 camera?

Author
Message
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 17th Dec 2009 22:34
When I use dbObjectScreenX(), it works fine, but it is from a secondary camera that I made (1), not my primary one (0). The X and Y positions are from camera 1 which I don't want, I want the positions from camera 0, how would I do that?

Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 17th Dec 2009 22:38
there is a command that sets the default camera
i think its
dbSetCurrentCamera(0)

ull find it in the documentation.
just put that every loop after camera 1 has done its stuff

prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 17th Dec 2009 22:40
Wow that worked lol Thanks a lot for the help I can now get my game debugged

Login to post a reply

Server time is: 2024-11-20 07:40:58
Your offset time is: 2024-11-20 07:40:58