Sorry if this obvious to everybody else, but it isn’t to me.
I have looked through a whole bunch of sample code for apps that have levels and how they determine when the level is complete, but most are based on scores. In my game I want the level to be complete when the ball touches the goal area. I tried something like
function levelComplete()
if ball.x > ? and ball.x < ? and ball.y > ? and ball.y < ? then
and then I put something here like redRect:rotate(90)
end
But that didn’t work. Then I saw another way to do it would be to use a function from another sample I saw where it got the distance from the ball to the goal and if it was less than whatever you set it to, something would happen
I understand that this is most likely my fault, It would just be great if I knew what had to be fixed 
PS- I didn’t actually put ?, I just dont have the #s off the top of my head.
Thanks
[import]uid: 7116 topic_id: 5675 reply_id: 305675[/import]