Map Name Location

PhoenixX92

The Light Bearer
Veteran
Joined
Jun 28, 2015
Messages
219
Reaction score
95
First Language
English
Primarily Uses
RMMV
So I'm trying to get the map name display location to the middle, I don't want to go digging around in the scripts and mess something up horribly for myself, so I'm wondering if I'm looking at the right thing necessary to do it. 


In the script list, under game_objects, there's a script called "Game_Map"
Line 26 is the only place I see that has name display and allows you to choose locations or anything.


def initialize
@screen = Game_Screen.new
@interpreter = Game_Interpreter.new
@map_id = 0
@events = {}
@display_x = 0
@display_y = 0
create_vehicles
@name_display = true
end


It says "create vehicles" near the bottom so I'm pretty sure I'm not right... So I checked "Window_MapName" but I don't see anything for changing the location in that. Just, what looks like the size.


Line 11:
 


def initialize
super(0, 0, window_width, fitting_height(1))
self.opacity = 0
self.contents_opacity = 0
@show_count = 0
refresh
end


I'm not sure if that ^ is for size or the location of the display that pops up when you enter a map?
Would someone care to point me in the right direction? :)  
 

Archeia

Level 99 Demi-fiend
Staff member
Developer
Joined
Mar 1, 2012
Messages
15,171
Reaction score
15,516
First Language
Filipino
Primarily Uses
RMMZ
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


I also want to clarify since this was in RGSS2 Script boards. Is this being made in RPG Maker VX and not RPG Maker VXAce (RGSS3)? 
 

PhoenixX92

The Light Bearer
Veteran
Joined
Jun 28, 2015
Messages
219
Reaction score
95
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


I also want to clarify since this was in RGSS2 Script boards. Is this being made in RPG Maker VX and not RPG Maker VXAce (RGSS3)? 

Oops. That is entirely my bad. I must've made a mistake when selecting the board.
No, it's ACE.

You were at the right place in the Window_MapName class.



super(0, 0, window_width, fitting_height(1))

# Translates to:
# super(x_pos, y_pos, width, height)


All of these arguments (the things in the brackets) expect an integer number, and they are measured in pixels.


Don't let that window_width and fitting_height(1) distract you, those are just method names which return integer numbers. You can replace them with direct numbers too if you want.

Thank you. When I saw "window_width" and "fitting_height," I thought the they were simply going to make the map name larger instead of moving it.

Greatly appreciated, Sixth.
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,180
Reaction score
834
First Language
Hungarian
Primarily Uses
RMVXA
You were at the right place in the Window_MapName class.


super(0, 0, window_width, fitting_height(1))

# Translates to:
# super(x_pos, y_pos, width, height)


All of these arguments (the things in the brackets) expect an integer number, and they are measured in pixels.


Don't let that window_width and fitting_height(1) distract you, those are just method names which return integer numbers. You can replace them with direct numbers too if you want.
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,773
Messages
1,032,040
Members
139,915
Latest member
nick7626
Top