Page 1 of 1

Looking for a camera example(platformer)

PostPosted: Tue Nov 13, 2012 4:17 am
by Iplaygames
Hey guys, i was wondering if any of you have a camera example file for a platformer game. I need the camera to be behind the main character, like 1 or 2 pixels behind.

Thanks guys.

Re: Looking for a camera example(platformer)

PostPosted: Tue Nov 13, 2012 5:37 pm
by justifun
Check this thread out

http://www.scirra.com/forum/topic59409.html

Re: Looking for a camera example(platformer)

PostPosted: Mon Nov 19, 2012 12:54 am
by Iplaygames
[QUOTE=justifun] Check this thread out

http://www.scirra.com/forum/topic59409.html[/QUOTE]

This is a good code for horizontal movement, however i need the code for vertical movement.

The camera only follows the player once he lands, i would like the camera to slowly follow the player while he jumps and while he falls.

It would basically be like the original code but instead of horizontal movement it would be a vertical movement.

http://www.flickr.com/photos/[email protected]/8198520210/in/photostream/Iplaygames2012-11-19 01:01:31

Re: Looking for a camera example(platformer)

PostPosted: Mon Nov 19, 2012 10:28 am
by IsometricRobot
Just off the top if my head can't you pin a invisable arm on the player sprite with another invisible sprite on the end to lock the camera on?