1 2 3 4 5 6 7 8 9 10 11 12 13 14
function _init() spr(0) end t = 0 function _draw() cls() -- sprite number local n = time() * 4 % 8 + 8 local x, y = t % 128, t / 128 spr(n, x, y, 1, 1, true --[[flip horizontal]]) t = t + 1 print("hello "..(some_string or "")) end