SWAMPFOOT9000

Veteran
Veteran
Joined
Jun 1, 2014
Messages
52
Reaction score
9
First Language
English
Primarily Uses
N/A
I can remember how in VXace, there was a script by Victor called "Actor Battlers." This script would allow you to display static battler images for the actors in battle. You could also change the alignment so that they would display near the bottom of the screen horizontally. (Similar to RPGmaker XP's default.) When I first saw the BattlerGraphicSetup plugin, and saw that it supported static battlers, I was sort of expecting that this would be possible. However, I was wrong, and the actors can only be aligned at the side of the screen  :stare: . Am I missing something? Is there some other script that already exists that I can use to accomplish this effect?  
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,459
First Language
Portuguese
Primarily Uses
You just need to change the postion of the battlers by editing a single line of code.


Search for this on the rpg_sprites.js


this.setHome(600 + index * 32, 280 + index * 48 + y * 24 - 24);


position x = 600 + index * 32


position y = 280 + index * 48 + y * 24 - 24


unless another plugin is messing with the position, in that case, check the plugin that is doing that.
 

SWAMPFOOT9000

Veteran
Veteran
Joined
Jun 1, 2014
Messages
52
Reaction score
9
First Language
English
Primarily Uses
N/A
You just need to change the postion of the battlers by editing a single line of code.


Search for this on the rpg_sprites.js


this.setHome(600 + index * 32, 280 + index * 48 + y * 24 - 24);


position x = 600 + index * 32


position y = 280 + index * 48 + y * 24 - 24


unless another plugin is messing with the position, in that case, check the plugin that is doing that.

It keeps telling me that y is undefined. Is there something I'm supposed to put in place of y that you sort of expected me to know? Or am I doing something else wrong?
 

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,459
First Language
Portuguese
Primarily Uses
it's not for you to copy this, is for you to edit as you need. This is the line i've edited for my own use.
 

SWAMPFOOT9000

Veteran
Veteran
Joined
Jun 1, 2014
Messages
52
Reaction score
9
First Language
English
Primarily Uses
N/A
it's not for you to copy this, is for you to edit as you need. This is the line i've edited for my own use.

Oh, I see  :) . In that case I'll probably be able to figure it out, thanks!
 

Latest Threads

Latest Posts

Latest Profile Posts

Ugh, can't decide what to make next!
The Dystopia
ikW0BYF.png
Recently got RPG Maker MZ. A bit slower with my current PC but I will be getting a new one soon.
evening progress; pretty happy where this is at so i'll take the rest of the night to myself =w=
5NJGyKY.png
It would seem learning JS is not a know it all for making plugins. While it has enabled me to understand what I'm looking at, I still have to find the relevant information in the core scripts. This is much harder than learning JS IMO.

Forum statistics

Threads
118,403
Messages
1,115,675
Members
155,343
Latest member
sograyish
Top