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 / another simple question, looked in help but it confulsed me

Author
Message
norlo
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 15th Jul 2003 05:49
i want to make text that shows how many missles the player has but i dont understand how to have the text command show a variable. if the way i am explaining this is confusing just ask me and i will try to explain it better. any help is appreciated.
andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 15th Jul 2003 05:53
The text command only works for strings. You can however, use the STR$() command to convert variables into strings. Example:



"All programmers are playwrites and all computers are lousy actors" -Anon
norlo
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 15th Jul 2003 05:54
thanks that was exactly what i needed.

norlo
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 15th Jul 2003 06:09
i have a new problem now,lol. the text is not being displayed on the screen.
here is my code someone please help me out here beacuse i have no idea why its happening:

andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 15th Jul 2003 06:15
Ok, first, dont pust "sync on" and "sync rate" inside the main loop. Put that somewhere near the top that will only be called once. Also, when using 3D objects, you don't need CLS. Just "sync" every loop.

"All programmers are playwrites and all computers are lousy actors" -Anon
norlo
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 15th Jul 2003 06:24
thanks for the tips but the text still isn't being displayed

andrew11
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 15th Jul 2003 06:40
Do you use DB Classic or Professional?

"All programmers are playwrites and all computers are lousy actors" -Anon
norlo
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 15th Jul 2003 06:47
im using classic

indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 15th Jul 2003 10:10
perhaps this helps to explain it




this is untested but it should work as is.

Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 15th Jul 2003 15:36
Just type in

or the name right under the while() in the loop
and if its still commming out choppy als put it after the sync in the loop.
--carlitos
norlo
21
Years of Service
User Offline
Joined: 14th Jul 2003
Location:
Posted: 17th Jul 2003 10:08
heh figured it out. forgot to delete the bitmaps.
always forget about the little things. Thanks for at least trying to help me out.

Login to post a reply

Server time is: 2024-11-24 23:09:50
Your offset time is: 2024-11-24 23:09:50