EasyRPG / Player

RPG Maker 2000/2003 and EasyRPG games interpreter
https://easyrpg.org/player/
GNU General Public License v3.0
965 stars 183 forks source link

Simulatenous event commands are not working (KeyInputProc Command is not working properly) #280

Closed Zegeri closed 10 years ago

Zegeri commented 10 years ago

Here's a test project: http://a.pomf.se/jnlczk.zip There are 3 NPCs with autostarting trigger here. Two of them have a KeyInputProc (without "wait until press").

Start the game and press the Enter Key: Expected result: All three NPCs walk at least one step down at the same time. Result I get: Only one NPC walks down

Zegeri commented 10 years ago

Good news... and bad news. It seems that this is not a problem of the KeyInputProc Command. It's actually a more serious bug. If there are more than one autostarting events, RPG_RT executes each one of them, but Player executes only the first one.

Ghabry commented 10 years ago

... what? :O

So we have to handle auto events actually like parallel processes. With the exception that the main interpreter is marked as "blocked" because parallel auto events are running...

Sounds funny. Who wants to fix this? :)

Zegeri commented 10 years ago

I'll try.