Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Storm on January 15, 2011, 12:28:46 am

Title: Wonder Stormtronics CMS
Post by: Storm on January 15, 2011, 12:28:46 am
Stormtronics CMS is amazing! I've a question, how did Blizzard do the overlaying windows. Window over Windows?
Can anyone show me a part where he did that?
Title: Re: Wonder Stormtronics CMS
Post by: ForeverZer0 on January 15, 2011, 12:45:07 am
you set create a window with coords that go over anothers.
Title: Re: Wonder Stormtronics CMS
Post by: Storm on January 15, 2011, 02:12:54 am
How? I don't get it. (I'm not the expert at it doh.  :^_^':)
Title: Re: Wonder Stormtronics CMS
Post by: ForeverZer0 on January 15, 2011, 02:25:38 am
I thought you were a scripter?
Thats the absolute basics of RGSS.

Window_Base takes 4 arguments (X, Y, WIDTH, HEIGHT)
When you call it, set the x and y where tou want the window.
it can then be moved through its instance .

ex.

myWindow = Window_Base.new(100, 100, 200, 200)

Creates a 200x200 pixel window at the coordinates 100, 100.

You can then move the window by changing the x and y.

ex.
myWindow.x += 30
myWindow.y = 300







Title: Re: Wonder Stormtronics CMS
Post by: Storm on January 15, 2011, 02:55:42 am
No, didn't mean that.
Here look:
Spoiler: ShowHide
(http://img838.imageshack.us/img838/1382/stmtronic.png)

The text won't don't overlay.

Hey, look at my new script! http://forum.chaos-project.com/index.php/topic,8245.0.html
Title: Re: Wonder Stormtronics CMS
Post by: ForeverZer0 on January 15, 2011, 03:42:11 am
increase the Z a little bit on the window to overlay.
Title: Re: Wonder Stormtronics CMS
Post by: Storm on January 15, 2011, 06:34:43 am
Ahh man! I forgot about that, thanks!
Title: Re: Wonder Stormtronics CMS
Post by: Blizzard on January 17, 2011, 02:48:57 am
The text inside the windows is on a slightly higher Z than the window itself. If I remember right, if the window Z is 0, then the text Z will be 10. That is useful in a few cases like the battle window so you can put sprites under the text by setting their Z to 5 or something like that (relatively speaking).