How to make Ball move to the side

I want my Ball to move on the screen and it cant just disappear, the background needs to follow at the same pace of the ball. Iknow how to make code for tapping the ball and make it go upwards while you do that.

I really need to know how i make it go sideways( both ways left and right)

would have been nice if you guys could share the code under and maybe add in how you Loop in the game which is important in my game.

My game is kinda similar to the flappy bird app just that it is a Ball which u tap on with a ground, background, invisible ceiling and i want to get the  obstacles into the game and make them come against me so i can jump over them.

Write detailed code answer and/or how i solve this :D!

Thank you for your contribution 

No, no, no… that is not how the forums work.  

You can ask a very specific question to get very specific help, or you can ask a general question and get a general response.

Please don’t expect people to post long pieces of code to answer general questions.   Really, nobody should be posting code to write an entire game for you here.  

What you asked for amounts to hundreds of lines (or more) of very specific code which would probably be totally uselessness to you without knowing the fundamentals first.

  1. Pick from the many free examples that come with Corona  SDK as part of the installation, and learn how they work so you can learn the basics of the SDK (touch inputs, physics, scaling, etc. …)

  2. Read the docs and training material on this site and explore fundamental concepts first.

  3. Grab some templates paid or free:

  1. Watch the Corona Geek Hangougs (over a 150 episodes now) and get the free code that goes with many of the shows:
  1. Then make a game.

I know it is tempting to jump right in there, but without a foundation, you’ve got no hope of finishing a game.  You gotta get your chops before you start making something as complicated (for a new developer) as a flappy-bird clone. (Tip: If it looks simple, it probably isn’t.)

Check this out!

http://coronatemplates.tk/templates

–SonicX278

No, no, no… that is not how the forums work.  

You can ask a very specific question to get very specific help, or you can ask a general question and get a general response.

Please don’t expect people to post long pieces of code to answer general questions.   Really, nobody should be posting code to write an entire game for you here.  

What you asked for amounts to hundreds of lines (or more) of very specific code which would probably be totally uselessness to you without knowing the fundamentals first.

  1. Pick from the many free examples that come with Corona  SDK as part of the installation, and learn how they work so you can learn the basics of the SDK (touch inputs, physics, scaling, etc. …)

  2. Read the docs and training material on this site and explore fundamental concepts first.

  3. Grab some templates paid or free:

  1. Watch the Corona Geek Hangougs (over a 150 episodes now) and get the free code that goes with many of the shows:
  1. Then make a game.

I know it is tempting to jump right in there, but without a foundation, you’ve got no hope of finishing a game.  You gotta get your chops before you start making something as complicated (for a new developer) as a flappy-bird clone. (Tip: If it looks simple, it probably isn’t.)

Check this out!

http://coronatemplates.tk/templates

–SonicX278