Ronyund

Ghost Terror
Veteran
Joined
Nov 21, 2019
Messages
51
Reaction score
7
First Language
Indonesia
Primarily Uses
RMMZ
Hello RM Members!

Could you help me please?

i wanna make title menu become higher. (i wanna reposition the menu)

Capture.PNG
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,368
Reaction score
1,403
First Language
Spanish
Primarily Uses
RMVXA
go into Window_TitleCommand and find this block:
Code:
def update_placement
    self.x = (Graphics.width - width) / 2
    self.y = (Graphics.height * 1.6 - height) / 2
end

self.y = ([bottom of the screen] * 1.6 - [window height]) / 2
basically: "distance from the top of screen to top-left corner of menu, is 5/3s the size of the screen, divided by two"

you can modify the 1.6 to your liking, or change the whole line to something like this:
self.y = Graphics.height / 2 + X
where X is the distance in pixels from the center.

mind that if you change the size of the screen, the window won't adjust itself, that's why it's originally written as a fraction of the screen.
 

Latest Threads

Latest Posts

Latest Profile Posts

New version of my wife's art for Tundra's opening map. No new version of Katrina yet, but I think this looks awesome.1624062754755.png
Devil May Cry-Style Action Shooter in RPG Maker 2000! | RPG Maker News #75

So many good stat names, how do people chose!? :p
I am often just about to give in and ask for help in the forums, when I eventually figure things out myself. Spent almost the whole day with a minor issue, but in the and it's so satisfying that I didn't need to open a thread :D

Forum statistics

Threads
112,350
Messages
1,067,663
Members
145,996
Latest member
VioletheSparkS2
Top