Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Change Y position of message

zchin

Sponsor

I'm using Ccoa's UMS and I ran into a problem that needs, ABSOLUTELY needs fixing. I use the text box or the comic feature. The Y for the box is set for the RTP and I'm using a template that is way taller then the rtp so it looks like they're using their bellies to talk which is really weird. I need someone to help find where to set the Y of the box because the script is huge and I'll get lost because I'm an amateur at just editing scripts :crazy:

If anyone could help I'd be greatly appreciative.

Script:
[pastebin]96[/pastebin]

Oh yeah, and I kinda used the pastebin thing, and it says Ccoa posted it, I thought that was where the title was supposed to go :crazy: so I tried having the script delete in one day, but it posted itself again...

Thank you and have a nice day!
 
In the "reset_window" method, around line 1278 starts the section for determining the y position of the window.
Notice lines 1293, 1296, 1303, 1306 all end with "- 48"
RTP character cells are 48 pixels tall.
replace the 48 with the standard height of your characters.

There is another "Reset_window" method in the slave_window class (~ line 3000. Your listing is incomplete, and I have a different version.)
You'll want to adjust the same lines in that class as well, if you're using slave windows.

Possible problems: The face & name boxes might also need to be adjusted if you're using them
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top