here change your animation calls to look like this:
As you can see, the rain doesn't quite match up with the clouds, but to fix that all you have to do is tinker around with how much you subtract from Back3.x.Code:if currentFrame == 1 then --draw first frame
screen:blit(Back3.x - 370,50,frame1)
elseif currentFrame == 2 then --draw second frame
screen:blit(Back3.x - 370,50,frame2)
elseif currentFrame == 3 then --draw third frame
screen:blit(Back3.x - 370,50,frame3)
end
-= Double Post =-
heh, I went ahead and figured it out for you, even added a few lines to double the size of the animation:
Code:if currentFrame == 1 then --draw first frame
screen:blit(Back3.x - 480,50,frame1)
screen:blit(Back3.x - 397,50,frame2)
elseif currentFrame == 2 then --draw second frame
screen:blit(Back3.x - 480,50,frame2)
screen:blit(Back3.x - 397,50,frame3)
elseif currentFrame == 3 then --draw third frame
screen:blit(Back3.x - 480,50,frame3)
screen:blit(Back3.x - 397,50,frame1)
end
