Maybe something like TOUCH OUT TT,TX,TY IF TT>0 THEN BGPUT LAYER,TX/16-SCRX,TY/16-SCRY ENDIF Though may not work with your code.