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.

[Resolved] How to make a wait command in script?

Status
Not open for further replies.
How is it done? I need a 2-3 second delay before the game over script executes to give time for events to finish processing. How is this done?
 
Just for clarification don't use sleep(seconds) as that pauses the interpreter not what you want in this situation use a wait count variable

@wait_count = frames

Setting a wait count is the equivalent to the wait event command
 
Alright but I dont know where to put this code. I've pasted it in just about every line on this script and the wait command isnt being processed. Should this go inside one of the interpreters or on the script itself?

UPDATE
Actually, after doing some testing, I've decided to just remove "$game_temp.gameover = $game_party.all_dead?" from Interpreter 6, thereby removing the automatic gameover screen, and instead use a common event to force gameover after 20 frames if the party is dead.

Thanks guys
 
Status
Not open for further replies.

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