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.

How can I change a RGSS-Switch with an event?

Oburi

Member

I've got the resoulutionscript and I want to chance the "Fullscreen" switch with an event.
Can somebody tell me how to do this?
Thx. Oburi
 

khmp

Sponsor

The Control Switches... event command changes a switch inside the $game_switches array. You can be fancy and use the Script... event command with the following line $game_switches[n] = true/false. Where n is the index of the switch you wish to manipulate but if the switch is 001, n is just 1.
 

Oburi

Member

Ive got an RGSS Script and I have to change the "Fullscreen" switch (look at the spoiler, theres a lil bit of the script) with an event. (with the script-button)... I ve got an optionsmenu with events and theres a Fullscreen/window option. And I have to change the RGSSswitch with the script command of the eventeeditor...
class Game_Window
   
  WINDOW_WIDTH  = 1024
 
  WINDOW_HEIGHT = 768
 
  FULLSCREEN = true

Sry my english isn't so good.. :)
 

khmp

Sponsor

You want to be able to change that constant FULLSCREEN? I feel even if you did it wouldn't have the effect you want it to. At least not unless there's an update check to see if there is a change in the constant which most likely there isn't. Otherwise it won't take effect until a window is created is my guess. To better help you we'd need to see the rest of the script. And don't worry about your English you're doing pretty well.
 

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