bgputでout of rangeが出るならx,yのオーバーですね xscreen 0,120,120 をプログラム中のbgputより前に入れてください