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 / text problem

Author
Message
Perokreco
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Bosnia and Herzegovina
Posted: 6th Apr 2005 07:40
how can i amke text command display variables for example
where positionx positiony and currenthealth are variables
X_MEN
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 6th Apr 2005 10:37
name$="sad"
health=10
text 120,120,name$
text 120,160,str$(health)

You can do it if you try
Vixen
19
Years of Service
User Offline
Joined: 6th Apr 2005
Location: Netherlands
Posted: 6th Apr 2005 22:47
Ofcourse you can use an integer variable for the x and y position the same way X_MEN used for 'health'

x_position = 21
y_position = 45
health$ = 23

text x_position, y_position, health$

If you didn't know: The STR$ command X_MEN used is to convert an integer (health) to a string (thus health becomes health$)
Perokreco
19
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Bosnia and Herzegovina
Posted: 7th Apr 2005 06:43
Thank you you helped a lot

Login to post a reply

Server time is: 2024-09-23 17:23:56
Your offset time is: 2024-09-23 17:23:56