What it is doing is the seeing sprite is moving until it touches edge, walls or player, and if it touches player it registers it. Control the player with mouse position If you use then delete all pen scripts