I have tested this script and know that is works.
for (var i =x; i<y+1; i++){
$gameScreen.erasePicture(i); }
Where X is the starting Picture and Y is the Ending Picture.
However, I want to erase this range of pictures with a Wait of 10 frames between each erasure.
I have tried inserting a bunch of things that I tried to look up. Like this.wait() or sleep() or setTimeout function(), but it doesn't work. Probably because I don't know how to insert it properly in the script with the correct syntax. Or maybe I am using the wrong Java Script.
Could someone show how to insert a 10 frame wait in this loop so there is a 10 frame wait between erasing each picture in the range?
Thanks in advance!
for (var i =x; i<y+1; i++){
$gameScreen.erasePicture(i); }
Where X is the starting Picture and Y is the Ending Picture.
However, I want to erase this range of pictures with a Wait of 10 frames between each erasure.
I have tried inserting a bunch of things that I tried to look up. Like this.wait() or sleep() or setTimeout function(), but it doesn't work. Probably because I don't know how to insert it properly in the script with the correct syntax. Or maybe I am using the wrong Java Script.
Could someone show how to insert a 10 frame wait in this loop so there is a 10 frame wait between erasing each picture in the range?
Thanks in advance!