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

1
2
3
if ship.x > 420 then
--ship follows camera
end

Take a look at this.. It may help.. :)

http://developer.anscamobile.com/sample-code/sprites

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.

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/

views:1649 update:2011/10/26 17:27:57
corona forums © 2003-2011