Any change you can show your code so i can see an example, i been trying to do the exact same thing but cant seem to figure it out it keeps ending…
[code]
require “sprite”
display.setStatusBar( display.HiddenStatusBar )
local sky = display.newImage( “images/black.png” )
local baseline = 280
local grass = display.newImage( “images/grass.png” )
grass:setReferencePoint( display.CenterLeftReferencePoint )
grass.y = 0
grass.x = 20
grass.rotation = 90
local grass2 = display.newImage( “images/grass.png” )
grass2:setReferencePoint( display.CenterLeftReferencePoint )
grass2.y = 480
grass2.x = 20
grass2.rotation = 90
local function test()
local tPrevious = system.getTimer()
local function move(event)
local xOffset = ( 0.5 * 5 )
grass.y = grass.y - xOffset
grass2.y = grass2.y - xOffset
if (grass.y) > 0 then
grass:translate( 480 * 2, 0)
end
if (grass2.y) < 0 then
grass2:translate(0 * 0, 0)
end
end
Runtime:addEventListener( “enterFrame”, move );
end
test()[/code] [import]uid: 45615 topic_id: 8742 reply_id: 37624[/import]