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 / Printing the int value

Author
Message
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 21st Mar 2009 12:08
i tryed this but the game just crashed when i pict up the 4-5 objective.
this is in the loop.


Game.Love
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 21st Mar 2009 12:39
dbText(0,0,itoa(Score,czText,10));
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 21st Mar 2009 13:54
thnx, works great, if i dont have my back obj, its not good that its all white so the text dosent show since its white to,
if i use
dbSetTextColor(255, 0, 20 ,100);
its the sainThing, help.

Game.Love
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 21st Mar 2009 14:04
You can't change colours. I think it is a huge bug that they haven't fixed.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 22nd Mar 2009 12:06
try this should change the text color.



Dark Physics makes any hot drink go cold.
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 22nd Mar 2009 13:14
thnx HowDo, it works i used
dbInk(255, 255);
and it turend it to light blue
just 1 prob i want it black how can i do that?

Game.Love
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 22nd Mar 2009 13:17 Edited at: 22nd Mar 2009 13:19
zero for black which I think you know.



Dark Physics makes any hot drink go cold.
Scottie Dog
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location:
Posted: 23rd Mar 2009 14:41
I would still go with the printf method personally, especially when you get to the stage where you want the score of 99 to align nicely witht he score of 100.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 23rd Mar 2009 15:26
@Scottie Dog

does the above way work, if you have 3D object or sprites and want the the text to stay on top of everthing?

Dark Physics makes any hot drink go cold.
FIGHTEX
15
Years of Service
User Offline
Joined: 30th Nov 2008
Location:
Posted: 23rd Mar 2009 15:46
stotie dog it aligns good i thhink(past) that it wouldnt but it goes ok.

Score:0
Score:1
.....
Score:10
.....
Score:100

Game.Love
Nomnom
15
Years of Service
User Offline
Joined: 17th Mar 2009
Location:
Posted: 23rd Mar 2009 17:32
Ugh, no use creating/deleting the buffer every frame. o_O


<><

Login to post a reply

Server time is: 2024-09-30 21:20:13
Your offset time is: 2024-09-30 21:20:13