It's a little roundabout, but you can copy the text into sprite memory and then use sspr():
function spritify(letter) cls() print(letter,0,0,7) for i=0,4 do memcpy(i*64,0x6000+i*64,3) end end function _draw() local letters="abcdefghijklmnopqrstuvwxyz" local i=(flr(time())%#letters)+1 spritify(sub(letters,i,i)) cls() local width=16*(2+cos(time())) local height=16*(2+sin(time())) sspr(0,0,3,5,64-width/2,64-height/2,width,height) end |
P#37732 2017-02-22 22:35 ( Edited 2017-02-23 03:35)
[Please log in to post a comment]