How to create simple platformer game in corona?

Hello Masters,

I am very new to corona, I just started learning the SDK for a week. So far I really like corona in developing games, very straight forward. However I have a problem in creating a platformer game like this:  https://play.google.com/store/apps/details?id=com.frogmind.badland

My question is how can i make the camera follows a player with a specific stage bounds like for example on this phaser page: http://phaser.io/examples/v2/input/virtual-gamecontroller 

I really want to be create a platformer game same as the badland… Any tutorials or recommendations is very much appreciated.

Thanks in advance! 

There are a few camera libraries out there so you should look at several, but they all work on the same principle:

  1. Create layering system with display group(s).

  2. Create objects, including one object to track (usually the player).

  3. Track the object with an enterFrame listener and adjust the position of the group the tracking object is in to keep the tracking object in a specific position or bound.

Here is my library with several camera styles and example usages:

http://github.com/roaminggamer/RGCamera

Again, there are others so I’d do a Google search for “corona sdk camera” and see what pops up.  (Caleb Place has one too: http://gist.github.com/GymbylCoding/8675733))

Here are the results of a search on GitHub:

http://github.com/search?utf8=%E2%9C%93&q=camera+corona

Please do not post the same question in two separate threads.

Master roaminggamer, this is what i have been looking for, thank you very much for sharing your library to me. I will also try to experiment with caleb’s library. 

As for thomas6 sorry, this won’t happen again :slight_smile:

No problem! FYI, I’m a bit of a platform gaming expert and willing to help, but I must warn you: I create all my functions and physics myself and don’t use external libraries.

Wow that’s great! I might fire up some questions to you in the future when i stuck on something… thank you for letting me know. Actually I use libraries as a last resort if I can’t figure things out… Good to have you guys to back up a newbie like me :slight_smile:

Cool, feel free to ask and we’ll try to help out.

There are a few camera libraries out there so you should look at several, but they all work on the same principle:

  1. Create layering system with display group(s).

  2. Create objects, including one object to track (usually the player).

  3. Track the object with an enterFrame listener and adjust the position of the group the tracking object is in to keep the tracking object in a specific position or bound.

Here is my library with several camera styles and example usages:

http://github.com/roaminggamer/RGCamera

Again, there are others so I’d do a Google search for “corona sdk camera” and see what pops up.  (Caleb Place has one too: http://gist.github.com/GymbylCoding/8675733))

Here are the results of a search on GitHub:

http://github.com/search?utf8=%E2%9C%93&q=camera+corona

Please do not post the same question in two separate threads.

Master roaminggamer, this is what i have been looking for, thank you very much for sharing your library to me. I will also try to experiment with caleb’s library. 

As for thomas6 sorry, this won’t happen again :slight_smile:

No problem! FYI, I’m a bit of a platform gaming expert and willing to help, but I must warn you: I create all my functions and physics myself and don’t use external libraries.

Wow that’s great! I might fire up some questions to you in the future when i stuck on something… thank you for letting me know. Actually I use libraries as a last resort if I can’t figure things out… Good to have you guys to back up a newbie like me :slight_smile:

Cool, feel free to ask and we’ll try to help out.