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 activate switches with rgss

How can i activate switches with rgss before the game start?
i have a script that keeps showing up at the start of the game but even though i turn on the disabled script, you still get a glimpse of the image before it goes away. how can i resolve this?
 
computerwizoo7":3s9uxk80 said:
How can i activate switches with rgss before the game start?
i have a script that keeps showing up at the start of the game but even though i turn on the disabled script, you still get a glimpse of the image before it goes away. how can i resolve this?

Easy enough. Just use the following bit of code:

Code:
$game_switches[1] = true

Just make sure you do it after the title screen initializes $game_switches in the new game command. I'd recommend inserting it right before $scene = Scene_Map.new in the command_new_game method. Also, make sure that the 1 is the number of the switch you need to modify, otherwise you're just uselessly flipping switch 1.
 

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