Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Dark Den

Request for a script

Recommended Posts

(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

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

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

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...