newbie help question
Hello,
for my game I'm going to have a ball on the left hand side of the screen which you flick your finger and it will go up the Y-AXIS but because of the iPhone screen it will go off the screen i don't want the ball to go left/right just for it to go up the y axis and come back down it. how would i code it so it just goes up the y axis and back down it depends on how much power you flick it depends how high it will go. then for it to stop when it gets back down to the bottom if the user hasn't pressed it to stop by the time it hits the ground.
sorry if this is a dumb question to ask.
for my game I'm going to have a ball on the left hand side of the screen which you flick your finger and it will go up the Y-AXIS but because of the iPhone screen it will go off the screen i don't want the ball to go left/right just for it to go up the y axis and come back down it. how would i code it so it just goes up the y axis and back down it depends on how much power you flick it depends how high it will go. then for it to stop when it gets back down to the bottom if the user hasn't pressed it to stop by the time it hits the ground.
sorry if this is a dumb question to ask.

Answers