he's trying to do collision detection for the long diagonal line, cris. There are plenty of relevant tutorials online, but not specifically for smilebasic, and they involve vector math, which isn't the easiest thing to get your head around...