Window Constructors giving x as 0?

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
Code:
def initialize
    super(0, 0, window_width, window_height)
    refresh
    self.openness = 0
end
This is the constructor for Window_BattleStatus.  It shows 0 as the x coordinate, but it is displayed at x = 128.  Why is this, and how can I change the script so that the window is displayed at x = 122?
 
Joined
Jul 17, 2015
Messages
586
Reaction score
316
First Language
English
Primarily Uses
When the Window_BattleStatus window is created in Scene_Battle, it sets the x coordinate for the window afterwards:


#--------------------------------------------------------------------------
# * Create Status Window
#--------------------------------------------------------------------------
def create_status_window
@status_window = Window_BattleStatus.new
@status_window.x = 128
end


So you would edit it there.
 

jwideman

Veteran
Veteran
Joined
Oct 2, 2015
Messages
230
Reaction score
97
First Language
English
Primarily Uses
Because this is in Scene_Battle

Code:
  def create_status_window
    @status_window = Window_BattleStatus.new
    @status_window.x = 128
  end
I leave it to you to figure out the rest.
 

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
When the Window_BattleStatus window is created in Scene_Battle, it sets the x coordinate for the window afterwards:



#--------------------------------------------------------------------------
# * Create Status Window
#--------------------------------------------------------------------------
def create_status_window
@status_window = Window_BattleStatus.new
@status_window.x = 128
end


So you would edit it there.


Thank you!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top