I have a scrolling background in my application with a character moving along it. The character travels at fast speeds, so I need the ground to be very long, so I made it 10,000 pixels long. I have a function to move the camera when my character moves :
code local function moveCamera()
if (rider.x > 80 and rider.x < 10000) then
game.x = -rider.x + 80
end
end
Runtime:addEventListener( “enterFrame”, moveCamera ) [/code]
When I run the app on the simulator, the ground seems to cut off at about 1000 or so pixels. Is there a limit to how big an object can be? [import]uid: 7116 topic_id: 6076 reply_id: 306076[/import]
You must be kidding? Please can someone at Ansca confirm or deny? I have been working on a game with a serious bug in it that me and Graham at Lime are trying to solve and if this is the case that would answer the bug we have I guess. [import]uid: 22737 topic_id: 6076 reply_id: 20857[/import]
I’m with you, this is ridiculous, but there must be some way around it, because aren’t there platformers made with corona? Also is there a way I can just add a second ground after the first one, or no? [import]uid: 7116 topic_id: 6076 reply_id: 20858[/import]