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.

Newcomers DBPro Corner / Printing Interger Variables At Co-ordinates

Author
Message
Phoenix Games
20
Years of Service
User Offline
Joined: 19th Feb 2004
Location:
Posted: 22nd Feb 2004 13:16
I would like to know how to print a interger variable at a set of coordinates (e.g. 30, 100)
if I'm not saying this right by an interger variable I mean something like this:
health = 50
print health
only I want to print it at a point on the screen. can anyone help?
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Feb 2004 13:36
health = 50
text 30, 100, "health = "+str$(health)

"eureka" - Archimedes
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 22nd Feb 2004 13:50
either of the following will work just fine

health=50
text 30,100,str$(health)

or

set cursor 30,100
print health

will work in pro or classic, if you have trouble with seeing the result due to the screen colours or something then don`t forget you can use the INK, SET TEXT OPAQUE, SET TEXT TRANSPARENT and TEXT SIZE commands, cheers.

Mentor.

Get Pro sorted, I am a customer not a BETA tester.

Login to post a reply

Server time is: 2024-09-21 22:40:29
Your offset time is: 2024-09-21 22:40:29