hi, there is a problem with this code, it says unknown perameter on line 7 (that the line with "initfont("gfont",1)" on it)
i can't seem to figure out why it won't just work
i've tryed taking the "'s out but then it says image not found, even thou it is
any ideas?
+ Code Snippetsync on
make object box 1,32,32,32
initfont("gfont",1)
do
ftext(20,20,"aftermath beta")
sync
loop
function ftext(x,y,text$)
for t=1 to len(text$)
a=asc(UPPER$(mid$(text$,t)))
if a>32 then paste image a,x,y,1
x=x+13
next t
endfunction
function initfont(font_name, f_num)
load image "gfx\f_" + str$(font_name) + ".bmp",f_num
paste image f_num,0,0,1
x=1:y=1
for t=65 to 90
get image t,x,y,x+13,y+14,1
x=x+14
if x=183 then x=1:y=y+15
next t
for t=48 to 57
get image t,x,y,x+13,y+14,1
x=x+14
next t
delete image f_num
endfunction