18行目のspofsがいたづらしてる? 17:if y>20 && !spchk(n) then spanim n,8,"@move",0 else spofs n,x,y こうしたら動きました