Well, the first is easy...
do
...(all other code)...
set cursor 0, 0
ink rgb(255,255,255),0
print "yada-yaya";score
sync
The second is a pain;
do
...any code...
set cursor 0, 0
ink rgb(255, 255, 255),0
print "yada-yaya";score
get image 9999, 0, 0, 100, 100
sprite 9999, 0, 0, 9999
...any code....
sync
Note that the get image command is the bug-a-boo in that process, in that you must grab a rectangle large enough for your printed data. (That's part of what drives me loco, other than I can't this all in the CLI when I want to.)
But that's the skinny of it. My popup menu system did the same thing, and it seems to work prety well. You can position the sprite or text anywhere on the screen and get the same results, so long as you grab the right part of where you printed.
Optionally, you can use the text command for the set cursor and print operation;
text 0, 0, "yada-yaya "+str$(score)
get image 9999, 0, 0, 100, 100
sprite 9999, 0, 0, 9999
Same difference...
good luck,
S.
Any truly great code should be indisguishable from magic.