Noob question about the player following the screen

Hi there,

I am new to Corona but a long time game salad user.

Im having the hardest time trying to figure out how to move the screen with the player. Im sure this is really easy. In game salad you move the camera, Im thinking that it isn’t the same with Corona.

Anyway my line of thinking is

if ship.x \> 420 then  
--ship follows camera  
end  

Im sure this is really simple and I can’t find a good tutorial on this that doesn’t use maps. Should I be adding a map?

Thanks in advance.

[import]uid: 83863 topic_id: 16918 reply_id: 316918[/import]

Take a look at this… It may help… :slight_smile:

http://developer.anscamobile.com/sample-code/sprites [import]uid: 51459 topic_id: 16918 reply_id: 63408[/import]

Thanks,

Basically I have a 2 window room in which the player needs to move around. I have set the background and all I need to do is move the player. [import]uid: 83863 topic_id: 16918 reply_id: 63411[/import]

this site is perfect for that

http://howto.oz-apps.com/2011/08/designing-game-movement.html

[import]uid: 51459 topic_id: 16918 reply_id: 63416[/import]

this site has a simpler approach to controlling an image on the screen…

http://techority.com/2011/02/14/controlling-a-character-with-a-d-pad/ [import]uid: 51459 topic_id: 16918 reply_id: 63418[/import]