Recently i started "porting" a game a did a while ago from DBPro to GDK and i got most if it working but i have run across a problem: I had a ball that was moving inside the screen, if the ball left the screen all i had to do is check its position and then i would have jumpted to a label called resetball wich was outside the main loop
loading objects
loading sound
loading sprites
`main loop
do
movemnt here
colision here
other things here
sync
loop
resetball:
ball_speed# = speed_value
ball_height# = insert_value here
`u get my point
return
But now i can't do this is gdk! I know there is a goto, and i have a label called resetball but if i put the label in the loop the ball will get reseted everytime, if i put it after the main loop the game will reach the
return; and the game will exit... Any ideas what to do?