Astfgl

AstfglRA

Oct 16th, 2016
186
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=============================================================================
  2. // Resizing actors
  3. // by Astfgl
  4. // Date: 16/10/2016  
  5. // Resizes actor sprites at the start of scene Battle.
  6. // Free to use both commercially and non commercially.
  7. // Credits not required.
  8. // Free to edit and redistribute as long as it's on the same terms of use.
  9. //=============================================================================
  10.  
  11.  
  12. /*:
  13.  * @plugindesc Resizes actor sprites at battle start.
  14.  * @author Astfgl
  15.  * @help use <scaleX:> <scaleY:> in the actor notetag box
  16.  
  17.  */
  18.  (function() {
  19.  
  20.     var parameters = PluginManager.parameters('AstfglRA');
  21.     var _Astfgl_newSBInit = Scene_Battle.prototype.createDisplayObjects
  22.     Scene_Battle.prototype.createDisplayObjects = function() {
  23.         _Astfgl_newSBInit.call(this);
  24.         var i = 0;
  25.         while (i < $gameParty.members().length) {
  26.             var id = $gameParty.members()[i]._actorId
  27.             if ($dataActors[id].meta.scaleX) {SceneManager._scene._spriteset._actorSprites[i].scale.x = eval($dataActors[id].meta.scaleX)}
  28.             if ($dataActors[id].meta.scaleY) {SceneManager._scene._spriteset._actorSprites[i].scale.y = eval($dataActors[id].meta.scaleY)}
  29.             i++;
  30.         }
  31.     };
  32.    
  33.    
  34.  })();
RAW Paste Data