tagx += (tagspeed*cos(degtorad(tagdir))) tagy -= (tagspeed*sin(degtorad(tagdir))) if tagx <= 0 or tagx>= 480 { tagdir = 180-tagdir } if tagy <= 0 or tagy >= 320 { tagdir = -tagdir } x = tagx + __view_get( e__VW.XView, 0 ) y = tagy + __view_get( e__VW.YView, 0 )