hey all, its been a while right? Well i have a new question, n i'm short on time so i'll just be frank..... or jim. lol
well here it is : how do i use wait in scripting? see i plan to make tutorials on how to make certain systems for rmmv, but im in the dev stage currently and this issue is really bugging me so any help will be appreciated.
~domo~
Thankx for the quick reply, but sadly i already tried that and it didn't work. i even tried making a counter directly in the update method, but when the condition was met i got nothing.... tried a console.log but still nothing. which is why i was wondering if there was a pre-made method/function i could use instead. Any ideas?
//-----------------------------------------------------------------------------
// BattleScene_ivb ++ v.1
//-----------------------------------------------------------------------------
// The scene class of the map screen.
var sceneMap_update = Scene_Map.prototype.update;
Scene_Map.prototype.update = function() {
sceneMap_update.call(this);
var battle_mode = false;
var isbattleStarting = false;
if(Input.isPressed('shift'))
{
battle_mode = true;
}
if(battle_mode == true)
{
isbattleStarting = true;
console.log("this area is now a battle scene");
}
if(isbattleStarting == true)
{
this.startBattleEfx();
$gameScreen.startShake(3,7,60);
// fade out screen
//show battle start message
//wait -- - -- - -- - -- -- -- -- - ----- --- - -i need to kinda pause here
//fade in screen
//$gameTemp.reserveCommonEvent(2);
}
Scene_Base.prototype.update.call(this);
};
see my problem?
without the (Wait) no one can see the message because it goes by too fast.
The date wait might be able to help you then in the above post; I used it in another plugin of mine to do sliding animations after a 5 second interval.
Also, your Scene_Map.prototype.update.call(this); Calls all the Scene_Base.prototype.update code also.
The date wait....? i don't understand.
Thankx this is just what i needed. You're a lifesaver. 🙂
Glad I could help; if you have any issues with the solution, feel free to contact me.