This is probably a totally lame question, but I can't see an answer anywhere..
I want to create a vertically scrolling map. I have my .tmx file in place, I can get it & Lime loaded into the simulator and I can instructions for how to move the map by tap/touch but I can't see if there's an easy way to scroll the map up the screen at a pre-determined rate.
Is there a simple way to do this (or evena complex one I haven't found yet?)
TIA
MrCrussell
Hey, there is no such thing as a dumb question! :-)
This should be what you are looking for:
1
2
3
4
5
6
7
8
9
| local speed = -1
local onUpdate = function( event )
map:move( 0, speed )
end
Runtime:addEventListener( "enterFrame", onUpdate ) |
Brilliant!
Thanks Graham :)
Don't know if this would help you but here's the link anyways:
http://buypremadeapps.com/Buy_Premade_Apps/Templates.html
It's a templates page, perhaps is what you need.
cheers
adrian
Cheers Adrian,
Might look at something like that in the future but I really need to screw it up myself first :)