PhoenixX92

The Light Bearer
Regular
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,711
Reaction score
16,508
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
Regular
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

Regular
Regular
Joined
Jul 4, 2014
Messages
2,207
Reaction score
877
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

Man, people just can't stop being a jerk and a complete a-hole when others are asking politely and nicely.
Knocked out two more cutscenes. Think that leaves me at 6? Last two are the two endings though so don't know if that counts as a "cutscene" but still.
Begrudgingly watched the first episode of Oshi No Ko. I didn't want to at first, but it came highly recommended.
Yeah, not a fun show
707.jpg
ATT_Turan wrote on Puppet Knight's profile.
castinganim.gif


Boring: Using RPG Maker's default inventory function.
Based: Using SRD's Skill Extender to make submenus that split up items based on their use.

... Also I plan to use this for containing different levels of the same skill into one place.

Forum statistics

Threads
135,053
Messages
1,253,339
Members
178,031
Latest member
A-mn3
Top