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.

Debug trouble

Nachos

Sponsor

Ok guys, I'm trying to make the maker to skip a script only when I'm playtesting. I did this once, but now I can't remember how to do it. I know it was something in the beginning of the script that has to do with the Debug condition.
Can somebody help me?

FYI, the script is AJ's splash screen.
 
Simply wrap the entire script in a conditional (if/unless) statement, by placing the "unless $DEBUG" at the very top, then closing it off with an "end" at the very bottom, that usually does the trick.

Code:
unless $DEBUG
  #...the script is in between
end

Note that if its for VX it'll be $TEST instead of $DEBUG you'd have to use.
 

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