How can I greatly alter the battle screen?

Bya

Villager
Member
Joined
Oct 30, 2016
Messages
8
Reaction score
0
First Language
English
Primarily Uses
Hi, guys. I understand that completely ripping off the style of other games is a big no-no, but I'd like to get my battle screen looking somewhat similar to Persona 3/4 as a jumping off point so that I can do my own alterations later.


I've attached what my game currently looks like, what I'd like to have it look like (for starters, I can figure out wiggling around X/Y placements fine on my own later), and P3's for reference.


My current roadblock is that I've seemingly edited my code for the face icons to not be bound to the rectangle; but they still are. Any thoughts as to why? Including my code as well.


http://hastebin.com/awudusuxey.rb (My window_battlestatus)

1477698200135.png

IDEAL.png

persona-3-fes-battle.jpg
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,259
First Language
English
Primarily Uses
RMVXA
I've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.
 

orochii

Abomination of life, or life itself.
Veteran
Joined
Apr 29, 2012
Messages
652
Reaction score
365
First Language
Spanish
There are two things you must change in order to make your status window look as you want.


First of all, is changing its size. You can find this on these lines:


#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
Graphics.width - 128
end
#--------------------------------------------------------------------------
# * Get Window Height
#--------------------------------------------------------------------------
def window_height
fitting_height(visible_line_number)
end


Then, there is something called a Viewport, which is like a container for visual things, like windows and sprites. RMVXA by default places the status window in a Viewport, you must look for this line where this happens, and get it out of it. Or change the size of that Viewport, though this will potentially break some other stuff (namely, the position for the party commands and actor commands).


Remember that both the party status and the command windows move to the left/right in unison when selecting actions? Well, none of them are moving really, all that and making them transparent after making a selection is achieved just by moving/invisibilizing the viewport.


So yeah, easies solution for this, get the Status window out of that viewport. At 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 # You could just try and delete this line.
end




Then reposition it to your liking in this line at Window_BattleStatus


super(0, 0, window_width, window_height)


And, if everything goes well, this should do the trick and finally let you use whatever size and position you want for your battle status window.
 

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

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top