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.

DarkBASIC Professional Discussion / Getting coordinates printed on scree in game.

Author
Message
Chilcix
10
Years of Service
User Offline
Joined: 7th May 2015
Location:
Posted: 7th May 2015 16:38
I am trying to get the x and y coordinates on the screen in game. I have pasted the code below. All I am getting is camera does not exist, so how can I make it so the camera that is being controlled is camera one?

Stab in the Dark software
Valued Member
22
Years of Service
User Offline
Joined: 12th Dec 2002
Playing: Badges, I don't need no stinkin badges
Posted: 7th May 2015 21:34
This should really be in the newcomers section.
In the future try searching the forum first then if you cannot find the answer then post.
The answer is you have not created camera 1.
Camera 0 is the default camera which does exist.
You are positioning camera 0 but trying to get data for camera 1 which does not exist.
If you do not specify the camera when you "position camera 50,50,50" it is positioning camera 0.

WindowsXP SP3,Vista,Windows 7 SP1, DBpro v7.7RC7
Stab In The Dark Editor
The coffee is lovely dark and deep,and I have code to write before I sleep.
Chilcix
10
Years of Service
User Offline
Joined: 7th May 2015
Location:
Posted: 13th May 2015 05:31
Quote: "This should really be in the newcomers section.
In the future try searching the forum first then if you cannot find the answer then post.
The answer is you have not created camera 1.
Camera 0 is the default camera which does exist.
You are positioning camera 0 but trying to get data for camera 1 which does not exist.
If you do not specify the camera when you "position camera 50,50,50" it is positioning camera 0."


Thank you!

I realized there was a newcomers section right after I posted this. I tried to search the forum and didn't find anything. I also apologize for my terrible grammar as I was a bit tired and stressed while writing the post.

I just posted something in the newcomers that is involving this same game.

Login to post a reply

Server time is: 2025-05-12 17:19:01
Your offset time is: 2025-05-12 17:19:01