Last active
May 2, 2017 01:51
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//============================================================================= | |
// 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