Pause weather animation?

Hey All!


I am looking to stop the weather animation in place. picture it raining in game...now make every raindrop freeze in place, that's what I want.


I accidentally did it a little while ago but don't know how I pulled that off. 😛


Thanks!
I'm not aware of any way of doing this.  Changing the weather to none will stop the weather but not freeze what's already there.


Are you using a plugin for the weather effects?


You might be able to mimic it by getting a snapshot of the game window and showing it as a picture, but that would freeze everything, not just the weather.


When you accidentally did it a while ago, was it in MV?  Do you recall using script calls?
You can with plugin, but i am not sure if you can do it without plugins
@Shaz My weather system is not based on a plugin, its something I've been putting together with events and JavaScript. When I froze it earlier, I did it totally on accident and don't know what happened.


It was a side effect of some other issue I ran into when I was testing out using an array to sort the weather outcomes.


I am going back through what I did to see if I can reproduce the effect.
Is it possible that the accident you had before just froze your game altogether and rather than 'paused' the weather in-place, it just stopped it updating entirely?
@ShazNo, I remembering thinking "Did the game just freeze?", so i tried moving my actor and could do everything just fine.
Here you go - save this as FreezeWeather.js in your plugins folder, and then specify what switch you want to use in the plugin parameters.  To 'freeze' and 'unfreeze' the weather, just turn that switch on and off.

Code:
//=============================================================================
// FreezeWeather.js
//=============================================================================

/*:
 * @plugindesc Stops updating of weather when a switch is on.
 * @author Shaz
 *
 * @param Weather Pause Switch
 * @desc When this switch is on, the weather will be paused
 * @default 1
 */

(function() {
  var parameters = PluginManager.parameters('FreezeWeather');
  var weatherPauseSwitch = Number(parameters['Weather Pause Switch'] || '1');

  var weather_prototype_update = Weather.prototype.update;

  Weather.prototype.update = function() {
    if ($gameSwitches.value(weatherPauseSwitch)) { return };

    weather_prototype_update.call(this);
  };
})();
@ShazWow, thank you so much! That worked perfectly! I really appreciate you taking time out to do that for me.
Here you go - save this as FreezeWeather.js in your plugins folder, and then specify what switch you want to use in the plugin parameters. To 'freeze' and 'unfreeze' the weather, just turn that switch on and off.

Code:
//=============================================================================
// FreezeWeather.js
//=============================================================================

/*:
 * @plugindesc Stops updating of weather when a switch is on.
 * @author Shaz
 *
 * @param Weather Pause Switch
 * @desc When this switch is on, the weather will be paused
 * @default 1
 */

(function() {
  var parameters = PluginManager.parameters('FreezeWeather');
  var weatherPauseSwitch = Number(parameters['Weather Pause Switch'] || '1');

  var weather_prototype_update = Weather.prototype.update;

  Weather.prototype.update = function() {
    if ($gameSwitches.value(weatherPauseSwitch)) { return };

    weather_prototype_update.call(this);
  };
})();
Hello Shaz,

This is what i have been searching for so i have a question: Can people freely use this plugin?
Or are there some requirements to be met?
it is free to use
it is free to use
Ok, Thank you 👍 was trying to create the illusion time stopped for a moment and this will do nicely and i wanted to make sure it was ok to use it.
Again thank you👍.

Original thread: https://forums.rpgmakerweb.com/threads/pause-weather-animation.64242/