You should add:
screen:waitVblankStart()
screen:flip()
After the screen:blit
I think it will also be better not to blit the player directly on the screen but on an image and to blit the image on the screen later on.
something like:
board:clear()
board:blit(0, 0, background, 0, 0, background:width(), background:height(), false)
board:blit(playerx, playery, stance[picnumber], true)
screen:blit(0, 0, board)
Before the loop create the board image like this:
board = Image.createEmpty(480, 272)
and load the background image (called here background) like this:
background = Image.load("background.png")
By doing this it shold avoir some flickering.
Bookmarks