Messing with Scene_Battle

Setix

Warper
Member
Joined
Sep 15, 2014
Messages
3
Reaction score
0
First Language
English
Primarily Uses
Hi guys,

As I'm using Jet10985's simple Side-View battle system I've had to attempt to make a few changes in order to make it look like my characters are not standing on a wall:



My solution to this, I figured was to find a way to put all the menus that appear at the bottom, at the top and to push the characters down.

However, upon trying this by changing 

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

#-------------------------------------------------------------------------- # * Create Status Window #-------------------------------------------------------------------------- def create_status_window @status_window = Window_BattleStatus.new @status_window.x = 128 @status_window.y = 50 endthe following happens



Please advise as to how I fix this problem, I'm slowly making my way through RGSS and am trying to pick it up but there are some things that just confuse the hell out of me.

I am also using Yanfly's battle engine though I cannot find an instance where it is declared that the window is to be placed at the bottom.

Cheers guys!
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
All the .x and .y do is decide on the starting position of the window, relative to where it is created. You will have to find where the window is created to be able to move it to the top. Have you tried ctr+shift+f to find where create_status_window is called?

Though...I do have a wild idea too. Could you plug in a negative number for .y? Like say -300? That might move it up to the top, though I have no idea if that will even work (it might reject the negative number). If that works, you could offset it by a negative amount to move it to the top.
 

ookami_lord

Best Lemon in the world
Veteran
Joined
Dec 5, 2013
Messages
88
Reaction score
15
First Language
portuguese
Primarily Uses
N/A
I never used the jet simple sideview, but I saw it and has an option of the spacing from the characters and such in the script.

in field options.
 

Setix

Warper
Member
Joined
Sep 15, 2014
Messages
3
Reaction score
0
First Language
English
Primarily Uses
All the .x and .y do is decide on the starting position of the window, relative to where it is created. You will have to find where the window is created to be able to move it to the top. Have you tried ctr+shift+f to find where create_status_window is called?

Though...I do have a wild idea too. Could you plug in a negative number for .y? Like say -300? That might move it up to the top, though I have no idea if that will even work (it might reject the negative number). If that works, you could offset it by a negative amount to move it to the top.
I actually tried a negative number but forgot to mention! Unfortunately it knocks the window out of orbit and it cannot be seen.

I will look into create_status_window and report back.

Edit: Where it is called is in the quoted text above. I've also noticed there is a script called Window_BattleStatus in the Script Editor but I can't see anything to do with location yet again.

I never used the jet simple sideview, but I saw it and has an option of the spacing from the characters and such in the script.

in field options.
It does have that option, unfortunately with 4 characters if I move them down to where it doesn't look silly my fourth and third characters are hidden by the status menu.
 
Last edited by a moderator:

Evgenij

Veteran
Veteran
Joined
Aug 28, 2013
Messages
349
Reaction score
100
First Language
German
Primarily Uses
N/A
You need to change this:

Scene_Battle  def create_info_viewport    @info_viewport = Viewport.new    @info_viewport.rect.y = Graphics.height - @status_window.height    @info_viewport.rect.height = @status_window.height    @info_viewport.z = 100    @info_viewport.ox = 64    @status_window.viewport = @info_viewport  endendto this:

class Scene_Battle  def create_info_viewport    @info_viewport = Viewport.new    @info_viewport.rect.y = 0    @info_viewport.rect.height = @status_window.height    @info_viewport.z = 100    @info_viewport.ox = 64    @status_window.viewport = @info_viewport  endendIf you want to show the Windows at the Top.

You then need to change the position of the message window to the top too, and need to think about another position for the log window, cause that is at the top normally.

You would also need to change all the position of the other windows (eg. skill_window)...
 
Last edited by a moderator:

Setix

Warper
Member
Joined
Sep 15, 2014
Messages
3
Reaction score
0
First Language
English
Primarily Uses
Just what I was looking for! With this information I'm sure I can wrangle something out.

You're a star, thanks for this.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top