Hi, i’m brazilian, so, sorry for my poor english 
I want to made an game like this: http://www.helicoptergame.net/
actually this game is made in flash, i want to create it with Corona SDK.
My first step is create a space ship, and, when the screen is touched, the space ship goes up, and when the screen is not touched, the space ship goes down.
I do some codes in C and Java before, just little things. For the university.
but, my question is, what i use to move the space ship down and up? Physics? or transition.to and use x and y coordinate.
This code above, don’t work well, after the first touch, the spaceship goes down too fast! And, to move the spaceship up, the screen need to continue being touched
.
Thanks!
display.setStatusBar(display.HiddenStatusBar) local physics = require "physics" physics.start() local background = display.newImage("background.jpg") local spaceship = display.newImage("spaceship.png", 150, 100) physics.addBody(spaceship, "dynamic", {density=10.0, friction=10.5, bounce=0.3}) function touchScreen(event) toucheD = 10 if event.phase == "began" then transition.to(spaceship, {time=1000, x=100, y=toucheD}) toucheD = toucheD +10 end return true end Runtime:addEventListener("touch", touchScreen)