How to get Camera to follow object?

Hey all

I am currently wanting to know/learn how to get the camera to follow my object as it moves round the screen?

So if anyone knows any resources on this please could you help?

Also if the if the device is in a horizontal position do the x,y axis change?

All replies appreciated thank you

Use the Perspective library http://developer.coronalabs.com/code/perspective

Use the Perspective library http://developer.coronalabs.com/code/perspective