How to make this move smoothly?
Posted: Thu Apr 11, 2013 6:38 pm
Hello 
This is the code of side scrolling, when I run it on the mobile devices it's moving not smoothly
How to make it move smoothly?
Please Help
Thanks
Ahmed F.

This is the code of side scrolling, when I run it on the mobile devices it's moving not smoothly

Code: Select all
on updateScreen
if sGameRunning then
playRocket
set the left of img "bg1" to (the left of img "bg1" - 25)
set the left of img "bg2" to (the left of img "bg2" - 25)
set the left of img "bg4" to (the left of img "bg4" - 25)
set the left of img "bg5" to (the left of img "bg5" - 25)
set the left of img "bg6" to (the left of img "bg6" - 25)
set the left of img "bg7" to (the left of img "bg7" - 25)
set the left of img "bg8" to (the left of img "bg8" - 25)
end if
if the right of img "bg1" < 0 then
set the bottomLeft of img "bg1" to the bottomRight of img "bg2"
end if
if the right of img "bg2" < 0 then
set the bottomLeft of img "bg2" to the bottomRight of img "bg1"
end if
if the right of img "bg4" < 0 then
set the bottomLeft of img "bg4" to the bottomRight of img "bg2"
end if
if the right of img "bg5" < 0 then
set the bottomLeft of img "bg5" to the bottomRight of img "bg4"
end if
if the right of img "bg6" < 0 then
set the bottomLeft of img "bg6" to the bottomRight of img "bg5"
end if
if the right of img "bg7" < 0 then
set the bottomLeft of img "bg7" to the bottomRight of img "bg6"
end if
if the right of img "bg8" < 0 then
set the bottomLeft of img "bg8" to the bottomRight of img "bg1"
end if
end updateScreen
How to make it move smoothly?
Please Help

Thanks
Ahmed F.