Zitat von lui2603
Ooh I just noticed that you a blitting each image seperatley, what I would do is use a table which has all of the images in.. like
stick = {}
stick[1] = Image.load("xdance.png")
stick[2] = Image.load("odance.png")
--and so on... then put...
stickimage = stick[1] --or whatever the starting image will be
--when you want it to change you would do
pad = Controls.read()
if pad:circle() then
stickimage = stick[2]
end
--Then you only have to blit the image at the end of the code.
screen:blit(0, 0, background)
screen:blit(x, y, stickimage)
screen.flip()
screen.waitVblankStart()
Doing it this way will also stop you from seeing 2 images at once because there will only be one image blitted at anyone time...
Anyway I'm now going to sleep so good luck with getting it sorted! Seeya