[Request] Change the default actor battle sprite size by using Actor Notetags & State Notes for chan

I want to change the default size of the actor sprites in the battle, but I also thought that this could be also useful for change the actor/enemy size when is under a state, for example when an actor is under the effect of "Small" state, the actor sprite size is decreased by 25%.

---

The Actor notetags could be for example:

<actor size>

X: 150%

Y: 150%

</actor size>

This will increase the default actor size.

And the State Notetags for change the size under the effect of an state could be for example:

<state size>

X: 50%

Y: 50%

delay: 30

</state size>

This will increase or decrease the current actor or enemy size by that value, when "delay" is added, instead of change of size instantly, it will take the defined number of frames to display how is growing/shrinking.

---

The feature that I need as soon as possible is change the default actor battle sprite sizes.

Once all features are done, would be appreciated if this plugin can be shared by the entire community allowing use it on commercial projects.

Thank you in advance 🙂
Although this script is fairly simple I think.

I haven't made it just done basic script on it.

The scale on 0.5 is super small and cute.

Screenshot:

Spoiler
scale_zpsxvkmelj2.png
😮 Amazing. Where's the script? 😀
I ran into a snag with the state change occurring slowly.
 
Well, it looks awesome anyway! If its as cool as the screenshot shows it to be, its going to be amazing! Thanks Jeremy!
var COLD = COLD || {};(function(){ COLD.actorSize = {}; (function($){ $.prototype.updateActors = function() { var members = $gameParty.battleMembers(); for (var i = 0; i < this._actorSprites.length; i++) { this._actorSprites.setBattler(members); this.actorSize(this._actorSprites); }; }; $.prototype.actorSize = function(sprite){ if(sprite._actor){ var actorId = sprite._actor._actorId; if($dataActors[actorId].meta.actorSizeX){ var scale = Number($dataActors[actorId].meta.actorSizeX) / 100; sprite.scale.x = scale; }; if($dataActors[actorId].meta.actorSizeY){ var scale = Number($dataActors[actorId].meta.actorSizeY) / 100; sprite.scale.y = scale; }; }; }; })(Spriteset_Battle);})();Here is the basic script of just changing the default sizes.

<actorSizeX:150> is 150%

<actorSizeY:150> is 150%
@Jeremy said:

Spoiler
var COLD = COLD || {};
(function(){

COLD.actorSize = {};

(function($){

$.prototype.updateActors = function() {

var members = $gameParty.battleMembers();

for (var i = 0; i < this._actorSprites.length; i++) {

this._actorSprites.setBattler(members);

this.actorSize(this._actorSprites);

};

};

$.prototype.actorSize = function(sprite){

if(sprite._actor){

var actorId = sprite._actor._actorId;

if($dataActors[actorId].meta.actorSizeX){

var scale = Number($dataActors[actorId].meta.actorSizeX) / 100;

sprite.scale.x = scale;

};

if($dataActors[actorId].meta.actorSizeY){

var scale = Number($dataActors[actorId].meta.actorSizeY) / 100;

sprite.scale.y = scale;

};

};

};

 

})(Spriteset_Battle);

 

})();

 

 

<actorSizeX:150> is 150%

<actorSizeY:150> is 150%
 

Thank you for this Jeremy! It works like a charm!

 

EDIT: My post sorta broke
ajksh KJASHJK AGHALIKJA  D:<   😮   🤣

Spoiler
9lc320.jpg
Amazing!!! Very high quality!!

Almost done with the graphics adjustments.... Thank you!! Don't forget to release the complete script with State notes too once you finish with it!  BD
Sorry for necroposting, but I think the script included above is exactly what I need for my Enlarge skill/state. I'm not sure how to use it, though.

I made a javascript file with this code inside:
Spoiler
var COLD = COLD || {};
(function(){

COLD.actorSize = {};

(function($){

$.prototype.updateActors = function() {

var members = $gameParty.battleMembers();

for (var i = 0; i < this._actorSprites.length; i++) {

this._actorSprites.setBattler(members);

this.actorSize(this._actorSprites);

};

};

$.prototype.actorSize = function(sprite){

if(sprite._actor){

var actorId = sprite._actor._actorId;

if($dataActors[actorId].meta.actorSizeX){

var scale = Number($dataActors[actorId].meta.actorSizeX) / 100;

sprite.scale.x = scale;

};

if($dataActors[actorId].meta.actorSizeY){

var scale = Number($dataActors[actorId].meta.actorSizeY) / 100;

sprite.scale.y = scale;

};

};

};



})(Spriteset_Battle);



})();





<actorSizeX:150> is 150%

<actorSizeY:150> is 150%
Then I put it in my plugins folder and enabled it in the Plugin Manager. But what should I do next? Using <actorSizeX: #> and <actorSizeY: #> as actor or state note tags doesn't work. Please help 🙂

Original thread: https://forums.rpgmakerweb.com/threads/request-change-the-default-actor-battle-sprite-size-by-using-actor-notetags-state-notes-for-chan.53388/