Help - Search - Members - Calendar
Full Version: [RESOLVED] Help with window position
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
lonedarkness
I screwed around with some code some time ago, and now when I try to use a menu-skill in my game (ie: Heal), the 'use' window spawns too far to the right and gets cut off.
Bizarrely, this only happens with skills that target one person; skills that target the whole party work fine.

I just want to know where that window's x/y coordinates of that particular window are in the code so I can adjust it.
Jens of Zanicuud
It should be in Scene_Skill, written as

CODE
@target_window.x = (@skill_window.index + 1) % 2 * 304


Try modify this to move the window on the x coordinate.

If you want to move it on the y coordinate, then just modify

CODE
@target_window.y


Does the window cut when you select a specific skill in both column or just a skill from the left column?
Remember that Scene_Item also uses the very same convention.

EDIT: This procedure will work only if you're using standard Menu / Skill Window. If you are using custom scripts, please post the Scene Script here, so that we can take a look and find what's wrong...

Jens
lonedarkness
QUOTE (Jens of Zanicuud @ Jan 15 2012, 04:48 AM) *
It should be in Scene_Skill, written as

CODE
@target_window.x = (@skill_window.index + 1) % 2 * 304


Try modify this to move the window on the x coordinate.

If you want to move it on the y coordinate, then just modify

CODE
@target_window.y


Does the window cut when you select a specific skill in both column or just a skill from the left column?
Remember that Scene_Item also uses the very same convention.

EDIT: This procedure will work only if you're using standard Menu / Skill Window. If you are using custom scripts, please post the Scene Script here, so that we can take a look and find what's wrong...

Jens



Actually I'm using SDK 2.4, but I was able to find the line in the SDK script (it's literally the same line, just in that script) and fix it (it's line 6063, and I removed the '+ 1' and the '* 304' for anybody interested).
Thanks for your help.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.