Code: Select all
function deletePls toDelete
   delete graphic toDelete
end deletePlsCode: Select all
on checkBounds
   global EKilled
   global raiders
   local myID
   
   if(loc of me is 1000,280) then
      put raiders + 1 into raiders
      add 1 to EKilled
      put "Raiders: " & raiders into field "Label Current Raiders"
      put long id of me into myID
      send "deletePls myID" to this card in 10 milliseconds
   else
      send checkBounds to me in 1 second
   end if
   
end checkBounds