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
14,919
Reaction score
15,113
First Language
Filipino
Primarily Uses
VNM
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,136
Reaction score
811
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 Posts

Latest Profile Posts

Husband has roped me into playing one of his PSO2 characters. Productivity is now negative.
Tileset A is lava! Don't burn D:
as MZ come out what you guys think about.....Some particles engine :3c?
Who wants to sing this song with me?~

Decided to submit my games to the Monday Night Stream. Figured it might be a fun way to get some traction.

Forum statistics

Threads
100,708
Messages
978,565
Members
132,320
Latest member
LavaWave
Top