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.

An input problem

I'll bet other people have had this problem before, but since I couldn't find it in the archives...

I have a parallel process (common event) running that handles the game clock. At set times it will bring up a message that reads "It's the end of the day." When that message comes up, the player clears it by hitting enter on the keyboard, just the same as he would for any message. Immediately afterwards, if the player character's sprite is facing a door, another character, or any other event that activates by action button, that event will trigger just as if the enter key had been pressed again!

Does anybody have any idea what could possibly be wrong and how to fix it?
 

poccil

Sponsor

That is the nature of parallel process events--they allow other events to start and continue even while they are running.  It is not recommended to put Text event commands within a parallel process event.  The RPG Maker XP help warns of this danger: "When you want to run a regular event from a Parallel Process trigger, don't call a common event directly; instead, you must use a switch to set off an Autorun event."  Therefore, to solve this problem, make the parallel process event turn on a switch, which in turn activates an Autorun event that displays the message. (Be sure to turn the switch off within the Autorun event after it ends.)
 

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