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.

problems with autorun

Okay so in my game I have an event at the very beginning that is on autorun. on the first page a text box pops up that says "hit enter to talk to other characters" and then self switch A is turned on. The second page, which is also on autorun, has the condition of "self switch A is on" and controls the movement of one of the other npcs. When I start up the game, the text box shows up fine, but when I hit enter the game freezes up. Any thoughts?

Thanks,
BoomerBoy
 
Easy diagnosis.

Autorun events stop all player movement while they are in progress. They also cycle until told to stop.

Your first page runs, player hits enter, Self Switch A is turned on, event goes to page 2... game promptly spends all its time Setting Move Routes, and locks up, because nothing's stopping that Autorun event from keeping running.

Solution: Make your second page Parallel Process.

Solution: Or, better still, don't even use it at all. You can set the move route of any NPC in their event. Why complicate things by using another event to control them?
 
Well, that's one way.

But it's not necessarily the way that I'd do it, depending on the effect. If you want to have an NPC moving continually, it'd be better to just have the NPC event have the move route itself.
 

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