Liam wrote:
setv va00 posx
setv va01 posy
new: simp etc
attributes
setv va02 wdth
divv va02 2
subv va00 va02
setv va03 hght
subv va01 va03
doif tmvt va00 va01 eq 1
mvsf va00 va01
else
kill targ
endi
Why so complicated? POSL (left-most corner) and POST (top-most corner) seem to do the same job much quicker:setv va00 posl
setv va01 post
doif tmvt va00 va01 eq 1
mvsf va00 va01
else
kill targ
endi |
According to the initial post are both objects of the same size, so this code works fine too while using several lines less.