Posts: 627
Threads: 38
Joined: May 2009
Can anyone tell me what lines to modify to change the position of the battlers right now they are too close to eachother. Here's a screenshot. His scythe is all over her face.
My partner in crime = TREXRELL
Posts: 11,238
Threads: 649
Joined: May 2009
Hey. ^_^ Glad you posted this as a problem related to Animated Battlers and not Charlie Lee's CBS as this is clearly governed by my animation system.
What you may or may not realize is that Charlie keeps the entire 1st page instructions of Animated Battlers in his system. Even so, the section that describes formation control is about halfway down.
The value of $formation_max_width sets the amount of space your party can take horizontally. By default, this is set to 128 which is 1/5th the width of the screen. Increasing this value will space the party even more.
Just make a script call before the battle like...
$formation_max_width = 160
... will allow the party to take 1/4th the screen width.
Posts: 627
Threads: 38
Joined: May 2009
Yes, I did read that, but what that does is spread them out more so they take up more of the screen giving me less room for the enemies. I just want them to be farther apart, but still let the enemies have a good amount of space.
EDIT: I'm going to end up making my own backgrounds anyway, but I would still like them to look good on the screen while I'm testing them.
EDIT: They look fine without the stretched background with no modifications to the battlers script (except for the regular configuration) but there was a big black spot when I removed it. But with the stretched background, I had to move them down because they were too high up on the screen. When I moved them down, this happened. The first battler is fine, but when I added the second, that happened.
My partner in crime = TREXRELL
Posts: 11,238
Threads: 649
Joined: May 2009
This isn't by me:
Formations by Claihm
Paste it below Animated Battlers and it takes over actor battler positions. It won't permit you to switch the battlers from left to right (the sideview mirror system), but you can create your own battler formations.
Posts: 627
Threads: 38
Joined: May 2009
Heh, I already have this, just never tried it out yet. Thanks I'll try it and see if it fixes the problem.
EDIT: Ok, just tried it and this makes the bottom of the screen black. But other than that, it works.
EDIT: OK, I fixed that, but now I get an error (only happens IN game! not in battle test from the database).
The error is on line 58. Line 58 is
return Battle_Formation::FORM[$game_system.battle_formation][self.index][0]
The error is Script 'Formations' line 58: NoMethodError occured.
Undefined method '[]' for nil:NilClass
I don't know why it does that because when I just go to test the battle everything is perfect. Any reason why this is happening?
This is in Claihm's script by the way.
FIXED: It was because I was continuing a game. All I had to do was start a new game.
My partner in crime = TREXRELL
Posts: 11,238
Threads: 649
Joined: May 2009
Woof!
Glad you figured it out. Sorry I couldn't help you during the day but... work kinda intrudes. ;) Still, you figured it out yourself and that's really cool. Shows some scripting knowledge or initiative there.
Closed. ^_^