You could do it in another way aswell..
(dont be so modest , everyone can code and everyone who can code needs help one time or another)

If you used a variable of integer instead of
while(1) like while(not_reached_border)
then when your x position reaches your req x position set not_reached_border to 1..

This will help to exit the while loop if you dont want it to loop all the time..

Last edited by Wjbender; 06/01/13 16:20.

Compulsive compiler