hii,
here is my part of code for scrolling-
--set nearbackground1 local nearback1=display.newImageRect("nearbk2.png",display.actualContentWidth,600) nearback1.x=0+display.screenOriginX nearback1.y=100+display.screenOriginY --set nearbackround2 local nearback3=display.newImageRect("nearbk2.png",display.actualContentWidth,600) nearback3.x=display.actualContentWidth+display.screenOriginX nearback3.y=100+display.screenOriginY --[[local nearback2=display.newImageRect("nearbk1.png",2000,400) nearback2.x=0+display.screenOriginX nearback2.y=300+display.screenOriginY]]-- local function scroll(self,event) if(self.x\<-(display.actualContentWidth)) then self.x=display.actualContentWidth else self.x=self.x-3 end end nearback1.enterFrame=scroll Runtime:addEventListener("enterFrame",nearback1) nearback3.enterFrame=scroll Runtime:addEventListener("enterFrame",nearback3)
my problem is when i use "letterBox " scaling method,first image move in -ve x direction.
but it gets disappear before crossing the screen .
when i use"zoomEven " scaling method it works perfectly…but i want to use recommended scaling method(i.e “letterBox”) .
what i want is
-every image cross the screen and after that they disappear not before.