"Too many events posted" error

Started by remixor, Tue 06/05/2003 03:01:12

Previous topic - Next topic

remixor

Hi, all.  I ran into an error while testing my game, and the error message said to contact Chris Jones, so here's what happened.  I created a region that my character can walk over.  In the interaction editor, I set the "Player walks onto region" interaction to "Game - Display a message", and it then displays several messages.  However, when play the game, as soon as the character touches the hotspot, it crashes and I get an error saying "Internal error: Too many events posted"  The only other thing I have in the room right now is an interaction for "Player first enters screen" which also displays some messages.  Any ideas?


EDIT: on second thought, maybe this should have gone in the beginner's tech forum...
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

Andail

When you have a script executed as the player walks on a hotspot, you will need to quickly disable that trigger, or the script will run over and over again. This could lead to the game crash, I suppose.

One solution is to make a local int and use it to disable the function the second time.



remixor

Ah, I see.  I somewhat suspected that was the problem; the only reason I wasn't certain was because the interaction editor says "play steps onto" the region, not "player is standing on" the region, which led me to believe it only applied to that first instant.  Thanks for your help  :)
Writer, Idle Thumbs!! - "We're probably all about video games!"
News Editor, Adventure Gamers

Pumaman

You're right, "walks onto region" does only happen the once.

Can I just check that you are using the latest beta 4, because earlier betas did have problems with regions.


SMF spam blocked by CleanTalk