use the RAYCAST command to get the coordinates of the block in front of you.This might work IF BUTTON()==#R AND MAP[INFRONTX,INFRONTY]>1 THEN MAP[infrontx,imfronty]=0