Skip to content

Instantly share code, notes, and snippets.

@krusynth
Last active May 2, 2017 01:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krusynth/a107d056adcaa5d49f72da6052af849a to your computer and use it in GitHub Desktop.
Save krusynth/a107d056adcaa5d49f72da6052af849a to your computer and use it in GitHub Desktop.
A plugin for RPG Maker MV to remove all photos from the map on load. This is useful when using parallax images for maps.
//=============================================================================
// Clear Map Photos
// Version: 1.0.0
//=============================================================================
var Imported = Imported || {};
Imported.Kru_ClearMapPhotos = "1.0.0";
//=============================================================================
/*:
* @plugindesc 1.0.0 Clear Map Photos - Remove photos from the map on load.
*
* @author Krues8dr (krues8dr.com)
*
* Information
*
* This plugin automatically clears all previously-loaded pictures when a map is
* loaded. This makes it easy to automatically unload pictures for parallax
* maps.
*
* Terms & Conditions
* This plugin is free for both non-commercial and commercial use.
*/
(function() {
"use strict";
var _originalMapLoadedCallback = Scene_Map.prototype.onMapLoaded;
Scene_Map.prototype.onMapLoaded = function() {
$gameScreen.clearPictures();
_originalMapLoadedCallback.call(this);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment