@hallo007
I'm not sure what you mean...just stop blitting whatever it is to screen? But you could always cheat and make a rectangle to cover up part of the screen.Zitat:
Zitat von hallo007
To cover up the left half. Many coders use a separate image variable that they "build up" and then they only have to blit that to screen. I call mine "prescreen" but you may have seen "offscreen" in some codes:Code:coverup=Image.createEmpty(240,272)
screen:blit(0,0,coverup)
I've been told this is faster than blitting everything directly to the screen buffer, though I've never actually tested this. It just seems cleaner so I always do it.Code:prescreen=Image.createEmpty(480,272)
-- (blit everything to prescreen)
coverup=Image.createEmpty(240,272)
prescreen:blit(0,0,coverup)
screen:blit(0,0,prescreen)
@ Gonrai
Direct from your post above (with indentations left in):Zitat:
Zitat von Gonrai
Sure looks like it to me, and besides SG57 even told you that it wouldn't work (he teases Lua coders for kicks :p).Code:displayTime = math.random(500,2000)
counter = 0
end
