Dumb newbie question

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 [import]uid: 45444 topic_id: 11565 reply_id: 311565[/import]

Hey, there is no such thing as a dumb question! :slight_smile:

This should be what you are looking for:

  
local speed = -1  
  
local onUpdate = function( event )  
  
 map:move( 0, speed )  
  
end  
  
Runtime:addEventListener( "enterFrame", onUpdate )  
  

Naturally you will probably want to adjust this to fit better in with your project however the important function is move(). [import]uid: 5833 topic_id: 11565 reply_id: 41989[/import]

Brilliant!

Thanks Graham :slight_smile: [import]uid: 45444 topic_id: 11565 reply_id: 42147[/import]

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
[import]uid: 12407 topic_id: 11565 reply_id: 42149[/import]

Cheers Adrian,

Might look at something like that in the future but I really need to screw it up myself first :slight_smile: [import]uid: 45444 topic_id: 11565 reply_id: 42153[/import]