Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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