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

Joined
Mar 9, 2013
Messages
355
Reaction score
89
First Language
Spanish
Primarily Uses
N/A
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 :)
 
Last edited by a moderator:

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
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:

 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
I ran into a snag with the state change occurring slowly.
 
 

Ghost of Christmas Kloe

The Icecream Princess
Veteran
Joined
Nov 15, 2015
Messages
1,548
Reaction score
957
First Language
English
Primarily Uses
RMMZ
Well, it looks awesome anyway! If its as cool as the screenshot shows it to be, its going to be amazing! Thanks Jeremy!
 

Jeremy Cannady

Coldfire
Veteran
Joined
Oct 25, 2015
Messages
449
Reaction score
268
First Language
English
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%
 

Ghost of Christmas Kloe

The Icecream Princess
Veteran
Joined
Nov 15, 2015
Messages
1,548
Reaction score
957
First Language
English
Primarily Uses
RMMZ
@Jeremy said:

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
 
Last edited by a moderator:
Joined
Mar 9, 2013
Messages
355
Reaction score
89
First Language
Spanish
Primarily Uses
N/A
ajksh KJASHJK AGHALIKJA  D:<   :o   :guffaw:

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
 
Last edited by a moderator:

Horn

Veteran
Veteran
Joined
Jun 20, 2019
Messages
33
Reaction score
15
First Language
Polish
Primarily Uses
RMMV
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:
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 :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top