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 / Variables 2D Text

Author
Message
Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 7th Feb 2007 22:25
Hi,

Ive made this code:



But the text just says 0 and 0 when included in a do...loop setup]

Any ideas why its not working?

Cheers,
Bozzy
wildbill
18
Years of Service
User Offline
Joined: 14th Apr 2006
Location:
Posted: 7th Feb 2007 23:04
works fine for me.
Pillarofire
20
Years of Service
User Offline
Joined: 31st Dec 2003
Location: Good Question, <looks around.>
Posted: 7th Feb 2007 23:06 Edited at: 7th Feb 2007 23:09
Hmm, this works for me too. Is this how you were incorporating it in a do loop?

Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 7th Feb 2007 23:14
Yes but with all the other functions as well like movement collision erm and shooting for the gun in my game... Here is what comes up for me (Look top left hand corner):

[img][img=http://img123.imageshack.us/img123/5577/wooovi4.th.jpg][/img]
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Feb 2007 00:03
Works for me too.

Could you be working with an older version of DBP in which there was a bug with global variables?

Updating DBP might cure the problem.

TDK_Man

Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 8th Feb 2007 01:56
I'm using 6.4 of DarkBASIC Pro though, and also when I add into the loop:



it also comes up with 0 so I don't know if its about globals or what

Cheers
Bozzy
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Feb 2007 07:11
the command syntax for that inbuilt function is screen fps()

Bozzy
18
Years of Service
User Offline
Joined: 10th Sep 2006
Location: Birmingham, UK
Posted: 8th Feb 2007 16:52
Cheers, I've changed that, and it shows, but the damn variables come up as 0
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 8th Feb 2007 19:01
In that case, your only option is to post some code that does what you describe.

So far, you've only posted working code which makes helping you impossible.

TDK_Man

Login to post a reply

Server time is: 2024-11-26 21:39:46
Your offset time is: 2024-11-26 21:39:46