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.

window_command

i am working on a horizontal command window, i allmost have it working the way i want. as you can see it is still drawing the commands one under the other, i need them side by side.
fu58b8.jpg

v3zrk7.jpg

im not 100% sure but i think all that needs to be changed it the draw_item method(in window_command).
all i did was copy and paste window command into a new box and change a few lines. i can post code if nessicary.
anyways so what im asking is firstly am i right about draw_item? and secondly if so can some one please show me how to rewrite it to work the way i want it too?
 
There are a couple of formulas used to determine the x and y position of the elements in that window. It's rather difficult to explain how to change those, however. (It gets easier if you've taken a computer math class, but it still requires experimentation)
 

Atoa

Member

@deathbethecost
Why you don't take a look at the SDK "Window_HorizCommand" class?
It's exactly what you need, even requiring the SDK you can check it to have an base.
 
i read threw it. gave me a few ideas. i really hope i can get it to work. guess ill have to wait a few days tho because i dont get off till 730. then i sleep then i work from 1930-730 again. but ill get back to you asap.(meaning i might have more questions lol)
 
I don't know how many times I said it, but the default XP's battle system has a class called Window_PartyCommand, which IS a horizontal command window. Personally, I disagree with Glitch and think it's quite easy to tell what's happening when you compare that quickly to a regular vertical command window. And yeah - if all else failes, you can still just copy and paste it.
 
hmm if i recall it is horizontal with 2 commands (im trying for 4 which is where im having issues) im at work but i get off in a few hours. i will def look into that as well. thank you guys so much for replying to this. you will enjoy what im working on when you see it i think.
 
ok, so i finally had time to look at all this. so i added the sdk class(just the class not any other part(is that ok?)and changed two lines of code in my script and it worked perfectly(after changing the width setting a few times to fit right) thank you guys so much!
 

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