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
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
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,162
Reaction score
822
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.
 

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

Latest Threads

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,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top