Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Moving the battlers on the y-axis

I'm using the standard battle system in RMXP, and after evaluating, enhancing, finding scripts, etc., etc. (and still looking for one change that will make it ultimately cool) this has finally led me to ask some questions concerning the battler pictures of your party members.

Standard battlers are pics from head to toe, and the lowest part of the pictures are always the feet, there isn't any open space, so that isn't it, but anyway. Some battler pics, including the ones I intend on putting in to it (read: making, yay), would rather start from the waist up. But this would make it look a bit silly with a lot of empty space below them.
So, basically, what I want to know is, where in the database/which script/command defines the characters position in battle on the y-axis (I want to move them down to the 0, I guess)? I've been looking and I can't seem to figure out where I need to change something or what to change. Could anyone help me with this, pleases?

(this does belong in here, does it?)

Oh and, while anyone's answering, could they tell me whether or not it's possible somewhere to stop that dreadful annoying half-transparent flickering my battlers do? I don't mind the white flickering when the first character is selected, but the second one turns semi-transparent at that moment, and even when he's selected he stays as transparent. Then when the actions are performed, it goes back to normal; it bothers me a bit.
 

poccil

Sponsor

To answer your main question:

The Game_Actor class has a screen_y class that defines the bottom of the actor's position. For all actors, regardless of character height, this value is defined as 464. However, depending on the battler, you can change that value to a lower one. Here is an example:

Code:
  def screen_y
    case self.id
     when 1 # Aluxes
      return 460
     when 2 # Basil
      return 450
     else
      return 464
   end
  end

If the transparency effect is bothering you, you can remove it by first editing the script section Sprite_Battler (near line 67)

Code:
    # If actor which should be displayed
    if @battler.is_a?(Game_Actor) and @battler_visible
#      if $game_temp.battle_main_phase
#        self.opacity += 3 if self.opacity < 255
#      else
#        self.opacity -= 3 if self.opacity > 207
#      end
    end

and then editing the script section Window_BattleStatus (near bottom):

Code:
  def update
    super
    # Slightly lower opacity level during main phase
#    if $game_temp.battle_main_phase
#      self.contents_opacity -= 4 if self.contents_opacity > 191
#    else
#      self.contents_opacity += 4 if self.contents_opacity < 255
#    end
  end
 
This topic has been resolved. If Jeronimus or any other users have any questions or further problems regarding this topic, please create a new thread about them.

Thank you!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top