The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Xionixx on September 11, 2007, 05:56:26 AM

Title: Side View Arrangement.
Post by: Xionixx on September 11, 2007, 05:56:26 AM
As you can see, with the screenshot I took of my game, I can place ONE battler in the side part of the screen. To do this heres what's in my script.

[spoiler]#--------------------------------------------------------------------------
  # * Get Battle Screen X-Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    # Return after calculating x-coordinate by order of members in party
    if self.index != nil
      return self.index * -200 + -100
    else
      return 0
    end
  end
  #--------------------------------------------------------------------------
  # * Get Battle Screen Y-Coordinate
  #--------------------------------------------------------------------------
  def screen_y
    if self.index != nil
      return self.index * 5 + 390
    else
      return 0
    end
  end[/spoiler]

And the problem with that is that it messes with the direct positioning of the battlers. Is there a way I can make the battlers appear in the red boxes I have drawn into the screenshot? Just in the same places as the boxes, not necessarily exactly in them.
Title: Re: Side View Arrangement.
Post by: tSwitch on September 11, 2007, 06:04:41 AM
you could use a case (different type of loop) to draw all 4 battlers, and vary their positions
based on which party index it is.
Title: Re: Side View Arrangement.
Post by: Xionixx on September 11, 2007, 06:09:45 AM
What do you mean, like have the parties all drawn out and have all the possible combinations pre-arranged? That's a lot of combinations. I'm sure messin' in the script would be much quicker and would work with anything.
Title: Re: Side View Arrangement.
Post by: Falcon on September 11, 2007, 09:53:03 AM
Why the fuck is a scripting question in here?

This should be in the god damn script help section.
Title: Re: Side View Arrangement.
Post by: Xionixx on September 11, 2007, 03:36:59 PM
Well what a nice way to remind me. kthx.