try this example
sync on : sync rate 60
LVL = 1
FontSize = 14
Level_Label$ = "Level: "+STR$(LVL)
Label_Length = LEN(Level_Label$)
Label_X_Offset = screen width()/2-((Label_Length/2)*FontSize)
make object cube 1,1
position camera 0,4,-4
point camera 0,0,0
set text size FontSize : set text font "verdana"
rem i use this instead of a do / loop
rem its the same thing just allows me to exit on escape
disable escapekey : while escapekey()=0
r = wrapvalue(r) + 1 : rotate object 1,r,r,r
text 10,10,"level : "+STR$(LVL)
text 10,30,"FontSize : "+STR$(FontSize)
text 10,50,"Level_Label : "+Level_Label$
text 10,70,"Label_Length : "+STR$(Label_Length)
text 10,90,"Label_X_Offset : "+STR$(Label_X_Offset)
text Label_X_Offset,10,Level_Label$
sync : endwhile
delete object 1
If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself