Y=Y-1 is just fine. What I think is happening is that whatever decides the colors sees the -1 part as a number, but when you run the program, the computer just takes 1 away from Y. But if you want to prevent Y from going below 0 then type this Y=Y-1 IF Y<0 THEN Y=0