Dark Den 4 Report post Posted April 15, 2010 (using side view battle system) Could someone make a script that: When the main player is the only party member he is put in the center of the battle screen and not in the side. When there are two players the both are kept side by side in the center and so on for 3 players. Could some please make this script for me ? Share this post Link to post Share on other sites
Marked 197 Report post Posted April 15, 2010 So you want the players centered. Are you currently using a sideview battle system, or are you looking for an entire sideview CBS that has the payers centered ? Feel free to call me stupid (i know nothing about RPG battle systems), but for a sideview dont the players have to either left or right? Share this post Link to post Share on other sites
Dark Den 4 Report post Posted April 15, 2010 I have the battle system it's just the sprite is too far left when he is the only member.I'm looking a script to fix that. Share this post Link to post Share on other sites
tacodome 2 Report post Posted April 15, 2010 Which battle system are you using? And are you wanting the battlers to be centered vertically? Share this post Link to post Share on other sites
Broken Messiah 20 Report post Posted April 15, 2010 Try googling for Tons of Addons, in theres a script that does that for the default xp battlesystem. Might work for Sideview. Share this post Link to post Share on other sites
Marked 197 Report post Posted April 16, 2010 Do you not want to reveal the battle system you're using? I think that the battlers positions would be defined in the battle system script. Share this post Link to post Share on other sites
Dark Den 4 Report post Posted April 16, 2010 I'm using Sideview Battle System Version 2.2xp script Share this post Link to post Share on other sites
tacodome 2 Report post Posted April 17, 2010 I'm using Sideview Battle System Version 2.2xp script Hi den13, The position of the actors in battle in this script are defined in the script called * SBS Config, near the top at line 39 in my version. ACTOR_POSITION = [[460,180],[480,210],[500,240],[520,270]] You can change the x positions here if you want, however, if I understand your request correctly, we're going to calculate the y position. To do this, we'll head to the script called *Sideview 2 and find the function base_position in the Game_Actor class (Line 2552 for me) Anyway, we want to replace this line that assigns the y position.... @base_position_y = base[1] with a calculated value based on the number of members in our party. So, replace it with the following line: @base_position_y = 240 - $game_party.actors.size * 15 + self.index * 30 You can play with these constant numbers if you want. Change 240 to modify where the "center" is. 30 is how far apart the actors are and then 15 is half of 30. So, if you change the 30 to 40, change 15 to 20. Hope that helps. Share this post Link to post Share on other sites
Dark Den 4 Report post Posted April 18, 2010 That's awesome tacodome it worked even though i did'nt understand much of it. Thanks man. Share this post Link to post Share on other sites
tacodome 2 Report post Posted April 18, 2010 That's awesome tacodome it worked even though i did'nt understand much of it. Thanks man. Cool. I'm glad it worked for you! :) Share this post Link to post Share on other sites