Moving a sprite?

I’ve created a sprite of a character walking, I’m wondering how I can make it drop down and walk across the screen from the left to right on its own (no user buttons or anything). Anyone have advice or a tutorial on how to achieve this? [import]uid: 72845 topic_id: 12266 reply_id: 312266[/import]

Have you tried transition.to? Check it out http://developer.anscamobile.com/reference/index/transitionto. For example,

local square = display.newRect( 0, 0, 100, 100 )
square.x = 160
square.y = 240
square:setFillColor( 255,255,255 )

transition.to( square, { time=1500, x = 200 } )

The above example creates a square and then moves it 40 pixels to the right in 1.5 seconds. [import]uid: 17138 topic_id: 12266 reply_id: 44694[/import]

Thank you so much! [import]uid: 72845 topic_id: 12266 reply_id: 44929[/import]

No problem, I’m happy to help! [import]uid: 17138 topic_id: 12266 reply_id: 44993[/import]