Ronyun_Deren

Veteran
Veteran
Joined
Nov 21, 2019
Messages
127
Reaction score
38
First Language
English
Primarily Uses
N/A
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,870
Reaction score
1,927
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 sprites & animations for Mint and Beri are coming along!
Guh-Colorbound.gif
ScreenShot_10_5_2022_4_44_8.png
Mad O' Malley... a stick figure that's afraid of it's existence being erased. so they always start battle in an anxious state.
Before, I was drawing all the sprite work, super big and shrinking it down. Which was really time consuming if thing's changed. So instead I'm drawing the characters sketch, and then remaking it with pixel art instead.
Why are job interviews so terrifying. :kaodes:

Forum statistics

Threads
125,801
Messages
1,173,666
Members
164,964
Latest member
oliveleaf
Top