RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Side View Arrangement.

Started by Xionixx, September 11, 2007, 05:56:26 AM

0 Members and 1 Guest are viewing this topic.

Xionixx

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.

tSwitch

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.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Xionixx

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.

Falcon

Why the fuck is a scripting question in here?

This should be in the god damn script help section.

Xionixx

Well what a nice way to remind me. kthx.