printing to the screen help

BlitzPlus Forums/BlitzPlus Beginners Area/printing to the screen help

loonix(Posted 2012) [#1]
Can i print Variable values to anywhere on the screen like with the text command..... i've been experimenting but wont seem to work for me...

any help would be great.

Thanks in advance.


Addi(Posted 2012) [#2]
if you dont want to use text you can make bitmap fonts and create a function that draws the right parts of that font on the screen


Addi(Posted 2012) [#3]
if you dont want to use text you can make bitmap fonts and create a function that draws the right parts of that font on the screen

sry. for double post o.O

Last edited 2012


Matty(Posted 2012) [#4]
Yes you can...what exactly is not working? Post some code...


loonix(Posted 2012) [#5]
i had a suggestion in the programming section :-

Graphics 640,480,1
SetBuffer BackBuffer()

While Not KeyHit(1)
Cls ;clear the current drawing buffer

Text 100,100,"Hello World"

Flip ;swap buffers

Wend


Which did work, but i was looking to print multiple things to the screen
or multiple variable values...

take this little bit of code :-

For loop = 1 to 10000

Text 100, 100, loop

Next.


with the suggested example it just displays the result of the loop not its execution.
i would of liked to have seen the counting of the loops value displayed at position 100,100 but that doesnt happen..

any suggestions ?


Addi(Posted 2012) [#6]
here we go :D

Try this:

SetBuffer BackBuffer()

For x = 0 to 1000
Text 100, 100, x
Flip
Delay 60
Cls
Flip
Next

Last edited 2012


loonix(Posted 2012) [#7]
Thanks Addi..... that does do the trick.
I was thinking of constantly clearing the screen........

What im trying to aim for is , constantly monitoring several sensors that display various values at different times,

So really what would be ideal is a window i can ,at will, print anywhere id like without having to clear the whole screen and reprint everything..... Or am i just asking too much .