Dis# = EntityDistance (sharik,cubik) If int(dis)=50 Then If KeyDown(CheckingButton)=1 Then Action=1 End If ... If Action=1 Then Text 10,10,"Text pojavilsya!"