Hello! Good evening, you see, I'm trying to make a Delay in the appearance of Scenes (Or in the Change between them) but I can't get the Loop to work, the game crashes as soon as the count starts I think, but if I remove it, the Appearance is almost instantaneous, I would like to have a spacing of at least two seconds.
The code that I attached in Spoiler is the step prior to the Appearance of said Scene (Which is Name Input, but I renamed it so as not to interfere with the Original).
(Yes, I know my code sucks, but I'm still trying u.u)
I attach a video in which you can see how quickly the Window appears.
I hope you can help me, I thank you in advance.
The code that I attached in Spoiler is the step prior to the Appearance of said Scene (Which is Name Input, but I renamed it so as not to interfere with the Original).
JavaScript:
Game_Party.prototype.callRenameScene = function(actor){
for (wait = 0; wait < 60;) {
if (wait == 60) {
const scene = Scene_Rename;
const max_name_chars = Kaltias.MaxNameChars;
const scenesToBoot = [{scene,prep:[actor, max_name_chars]}];
$gameTemp.bootRequiredScenes(scenesToBoot);
} else {
wait = + 1
}
}
}
I attach a video in which you can see how quickly the Window appears.
I hope you can help me, I thank you in advance.