I’m trying to scroll through two rectangles but I keep getting a gap. As far as I can tell the numbers are correct though. Is this a bug?
The device is an iPad, 1024 * 768
Thanks for any help!
~ Kai
display.setStatusBar( display.HiddenStatusBar ) basespeed = 10 local BoxOne = display.newRect(0, 192, 1024, 384) BoxOne:setFillColor(255, 0, 0, 128) BoxOne.speed = basespeed local BoxTwo = display.newRect(-1024, 192, 1024, 384) BoxTwo:setFillColor(255, 255, 0, 128) BoxTwo.speed = basespeed function Scroller(self,event) if self.x \> 1024 + 512 then self.x = -512 else self.x = self.x + self.speed end end BoxOne.enterFrame = Scroller Runtime:addEventListener( "enterFrame", BoxOne ) BoxTwo.enterFrame = Scroller Runtime:addEventListener( "enterFrame", BoxTwo )