help with manipulating windows.

ougitou1

Invisible Black
Veteran
Joined
Dec 9, 2015
Messages
114
Reaction score
11
First Language
en-
Primarily Uses
N/A
hi i've been having trouble with this fer a while now and it seems that i'm no closer to solving this issue so ill ask for help.
how does one manipulate the visibility of windows through script and is it less costly to hide it or disable it to turn it on again when needed. thanks i appreciate any and all info.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,272
Reaction score
1,297
First Language
Spanish
Primarily Uses
RMVXA
windows are scene objects, so if you want to grab a window from outside the scene you need to grab the scene first.
usually whatever instruction you send to the program is run at scene level, because only one can be active at any time, so you'd just grab the window directly, but if you're working at common event level, you have to grab the scene first.

when you jump in between windows via sub menus or buttons, you're disabling and enabling windows as you go.
even tho things seem to run in parallel, only one object of one window of one scene is ever active at one given time, so when you make one window active, everything else goes inactive by default.

that's Interface-101, for these games: scene, window, cursor.
and when you're not handing cursors, you're handling the player, which runs in a separate scene with another structure.
 

ougitou1

Invisible Black
Veteran
Joined
Dec 9, 2015
Messages
114
Reaction score
11
First Language
en-
Primarily Uses
N/A
Hmm ok, my problem lies in the fact that the windows in my current scene are not active but still very visible, and in being visible when it’s not necessary it takes away from the fluidity of the menu system and thus causes a problem. Also the frame rate seems to drop with lower devices when more windows visible?
Anyway I’d like to know how to disable and hide windows. For the reason mentioned above, it kinda... uh... protrudes?? @gstv87
 
Last edited:

ougitou1

Invisible Black
Veteran
Joined
Dec 9, 2015
Messages
114
Reaction score
11
First Language
en-
Primarily Uses
N/A
This query has been solved, pease close this thread.
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,773
Messages
1,032,038
Members
139,915
Latest member
nick7626
Top