help with manipulating windows.

ougitou1

Invisible Black
Veteran
Joined
Dec 9, 2015
Messages
109
Reaction score
10
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,186
Reaction score
1,162
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
109
Reaction score
10
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
109
Reaction score
10
First Language
en-
Primarily Uses
N/A
This query has been solved, pease close this thread.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Quexp wrote on Shaz's profile.
I absolutely love your profile/pic! :kaoluv:
Stream will be live shortly with some Darkest Dungeon! Feel free to drop by!
I made a battle results screen for my minigame.. any feedback? :)
Things I thought would never happen but just did: I needed to use my snow shovel. In August. In the Northern Hemisphere.
So I finished Cupcake, now I need to figure out my next project!
Do I pick up one of my incomplete games?
Do I start something entirely new???
The possibilities are endless!

Forum statistics

Threads
100,682
Messages
978,384
Members
132,308
Latest member
Amarina
Top