How can I make the enemy troops automatically align ike the actors?
Here's the code I used to make the actors apear in the battle scene:
Theres a button in the troops settings that automaticaly aligns them in an horizontal line.
Is there a way to make that button arrange the troops like the actors. Or is there a similar script that can arrange the enemy troops?
Thank you.
Pokemon Sprites are place holders, I'm not doing anything pokemon related, I'll be using my own sprites.
[IMG]http://orig12.deviantart.net/3bf7/f/2015/094/7/7/party_by_espillam-d8ofmzj.jpg[/IMG]Pokemon sprites are place holders.
=beginBasic Side View Battle Scriptby Fomar0153Version 1.0----------------------Notes----------------------No requirementsDisplays battlers for the player's party.----------------------Instructions----------------------You will need to import battlers for the party to usethey should be named like this:name_battlere.g.Ralph_battler----------------------Known bugs----------------------None=endclass Game_Actor < Game_Battler #-------------------------------------------------------------------------- # ● New Method battler_name #-------------------------------------------------------------------------- def battler_name return actor.name + "_battler" end #-------------------------------------------------------------------------- # ● Rewrites use_sprite? #-------------------------------------------------------------------------- def use_sprite? return true end #-------------------------------------------------------------------------- # ● New Method screen_x #-------------------------------------------------------------------------- def screen_x return 450 end #-------------------------------------------------------------------------- # ● New Method screen_y #-------------------------------------------------------------------------- def screen_y return 120 + self.index * 40 end #-------------------------------------------------------------------------- # ● New Method screen_z #-------------------------------------------------------------------------- def screen_z return 100 endendclass Spriteset_Battle #-------------------------------------------------------------------------- # ● Rewrites create_actors #-------------------------------------------------------------------------- def create_actors @actor_sprites = $game_party.battle_members.reverse.collect do |actor| Sprite_Battler.new(@viewport1, actor) end endend
[IMG]http://orig07.deviantart.net/f975/f/2015/094/6/1/arrange_by_espillam-d8ofn0c.jpg[/IMG]
Thank you.
Pokemon Sprites are place holders, I'm not doing anything pokemon related, I'll be using my own sprites.