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.

Waiting and Parallel Processes

Hey, all,

I've got a quick question for you. If I have a parallel process event that's configured to...

1. Turn on Switch X
2. Wait for 30
3. Turn off Switch X

And I have a second event as a parallel process that is cued by Switch X, will it continue to check during the 30 frames, or only for the split-frame between the first and second lines?

Thanks!
 
You mean that the left hand drop down box is set to check for that? Ya, the second it turns on that other event happens.

EDIT- It.. um... checks evrey second. It will lag your game really fast if you're not careful.
 

Zeriab

Sponsor

Waiting does put the parallel process on hold.
After 30 frames it will turn off Switch X.
The wait will not hold the second event.
An event that is waiting doesn't really use many resources. It should not make your game lag. I don't know about the second event, that might do, though you can always put a few 1-frame waits in to delay further execution to next frame.

In case you are playing around with common events: Note that parallel common event reset when you transfer to a new map. ;)
 
I guess it depends on context, but remember that parallel process events loop, so immediately after the switch is shut off, it will jump back to line 1 and turn it back on before waiting again.  So, don't forget either another delay after the switch is turned off, or some sort of termination statement so it doesn't repeat.

Unless you want it to behave that way, that is.
 

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