id anyone have any idea how to make a pause in script, we can by menu but did't find out by script.
Also did you know how many frame take one player to move 1 tile?
Also did you know how many frame take one player to move 1 tile?
e=$gamePlayer; t=$gameMap.terrainTag(e.x,e.y);
p=e.isMapPassable(e.x, e.y, e.direction());
while (p && (t === 1 || t === 2 || t === 3 || t === 4 || t === 5)){
if(e.ismoving){alert(1);}
if (t !== 5){e.setDirection(t*2);}
e.moveForward();
this.wait(60) ;
p=e.canPass(e.x, e.y, e.direction());
if(p){t=$gameMap.terrainTag(e.x,e.y);}else{t=6}
}

Original thread: https://forums.rpgmakerweb.com/threads/how-to-pause-by-script.64541/