Hi Brent I watched 3 videos, so far so good.
First problem…
The two images are moving, scrolling fine. From right to left
but in the VIDEO the city2 is right after city1 so as soon as city1 movess -3 px then city2 enterFrame so it seems like a loop
– PROBLEM 1
mine I can see the city1 all the way moving, and is not only after city1 has left the screen or the view, then city2 enterFrame
so I have a lot of time with no image waht so ever.
– PROBLEM 2
City 3 starts to move fine, and after it leaves the screen, then I don’t see nothing
I star to see city 2 but no city3 and after a few seconds, city3 APPERAS all of a sudden in the middle of the screen!
------ THIS IS THE CODE I HAVE
display.setStatusBar (display.HiddenStatusBar)
local background = display.newImage (“bgIce.png”)
local nitas = display.newImage (“stalacnitasDown.png”)
nitas:setReferencePoint(display.BottomLeftReferencePoint)
nitas.x = 0
nitas.y = 320
nitas.speed = 1
local nitas2 = display.newImage (“stalacnitasDown.png”)
nitas2:setReferencePoint(display.BottomLeftReferencePoint)
nitas2.x = 0
nitas2.y = 320
nitas2.speed = 1
local titas = display.newImage (“stalactitasUp.png”)
titas:setReferencePoint(display.UpperLeftReferencePoint)
titas.x = 245
titas.y = 140
titas.speed = 1
local titas2 = display.newImage (“stalactitasUp.png”)
titas2:setReferencePoint(display.UpperLeftReferencePoint)
titas2.x = 245
titas2.y = 140
titas2.speed = 1
function scrollNitas(self,event)
if self.x < -477 then
self.x = 480
else
self.x = self.x - self.speed
end
end
nitas.enterFrame = scrollNitas
Runtime:addEventListener (“enterFrame”, nitas)
nitas2.enterFrame = scrollNitas
Runtime:addEventListener (“enterFrame”, nitas2)
titas.enterFrame = scrollNitas
Runtime:addEventListener (“enterFrame”, titas)
titas2.enterFrame = scrollNitas
Runtime:addEventListener (“enterFrame”, titas2)
Please help me out, THANK YOU VERY MUCH!
PS. I have a video if I didnot explain myself good. Tell me if you need to see the video