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 / Print coordinates

Author
Message
level
15
Years of Service
User Offline
Joined: 8th May 2009
Location:
Posted: 11th Jun 2009 11:23
What is the command to print coordinates like in dbpro

print X#
print y#
print Z#

Thanks.
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 11th Jun 2009 16:16


Or you could wrap that in a function to make it easier to use, plus as sprintf is being used there you can easily add messages stuff to the string, like: sprintf( textBuffer, "Y axis: %f", y ); or change the precision: sprintf( textBuffer, "%.2f", y ); and even multiple values: sprintf( textBuffer, "x: %f, y: %f", x, y );

level
15
Years of Service
User Offline
Joined: 8th May 2009
Location:
Posted: 11th Jun 2009 16:40 Edited at: 11th Jun 2009 16:42
Sorry for being such a noob but ..


My code :


I know I need to declare what x , y , z are . They are my camera coordinates on the x , y , z axis but how do I do it ?
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 11th Jun 2009 17:51
do this for the x,y,z values:



level
15
Years of Service
User Offline
Joined: 8th May 2009
Location:
Posted: 11th Jun 2009 20:09 Edited at: 11th Jun 2009 20:09
Thanks alot

Login to post a reply

Server time is: 2024-11-05 23:16:57
Your offset time is: 2024-11-05 23:16:57