Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=============================================================================
- // Resizing actors
- // by Astfgl
- // Date: 16/10/2016
- // Resizes actor sprites at the start of scene Battle.
- // Free to use both commercially and non commercially.
- // Credits not required.
- // Free to edit and redistribute as long as it's on the same terms of use.
- //=============================================================================
- /*:
- * @plugindesc Resizes actor sprites at battle start.
- * @author Astfgl
- * @help use <scaleX:> <scaleY:> in the actor notetag box
- */
- (function() {
- var parameters = PluginManager.parameters('AstfglRA');
- var _Astfgl_newSBInit = Scene_Battle.prototype.createDisplayObjects
- Scene_Battle.prototype.createDisplayObjects = function() {
- _Astfgl_newSBInit.call(this);
- var i = 0;
- while (i < $gameParty.members().length) {
- var id = $gameParty.members()[i]._actorId
- if ($dataActors[id].meta.scaleX) {SceneManager._scene._spriteset._actorSprites[i].scale.x = eval($dataActors[id].meta.scaleX)}
- if ($dataActors[id].meta.scaleY) {SceneManager._scene._spriteset._actorSprites[i].scale.y = eval($dataActors[id].meta.scaleY)}
- i++;
- }
- };
- })();
RAW Paste Data