Woah! That snippet locked up my laptop!
I've not used the Advanced 2d plugin, so I'm not sure of its functions. If you can't find a solution using it, you may want to look into a different approach. Does the text need to be dynamic? If not, you may be able to make an image of the text (at the largest resolution used), then resize it accordingly.
If the text does need to change (like the updating screen fps in your snippet) you may want to look into making your own text system using a texture atlas. I personally use codeheads bitmap font generator to generate a texture atlas.
Here is an example of a font system:
sync on: sync rate 60: color backdrop rgb(0,0,0)
make object sphere 1,1
dim FontLetter(127) as integer
LoadFont()
do
FontPrint(0,0, "Hello World!")
FontPrint(300,300, "Hi there.")
sync
loop
end
function LoadFont()
set bitmap format 21
tempFontSheet = find free image()
load bitmap "Fr.png", tempFontSheet
set current bitmap tempFontSheet
for y = 0 to 7
for x = 0 to 15
FontLetter((y * 16) + x) = find free image()
get image FontLetter((y * 16) + x), (x * 32), (y * 32), (x * 32)+32, (y * 32)+32, 2
next x
next y
delete bitmap tempFontSheet
endfunction
function FontPrint(x as integer, y as integer, s$ as string )
textLength = len(s$)
sCursor = 1
for i = 1 to textLength
letter = asc(mid$(s$, sCursor))-32
if mid$(s$, sCursor) = "i" || mid$(s$, sCursor) = "I"
inc x, 5
endif
paste image FontLetter(letter), x, y, 1
if mid$(s$, sCursor) = "i" || mid$(s$, sCursor) = "I"
inc x, 11
else
inc x, 16
endif
inc sCursor
next i
endfunction
And the text image is attached.
It doesn't show how to resize, but with a bit of math, it would definitely be possible!
Edit: You got the [co
[/b]de] right at the top, but I think the forum is case sensitive. Use [co[b]de] & [/co
[/b]de] instead of [CO[b]DE] & [/CO[b][/b]DE]
Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.