Many events or many conditions in a parallel event?

Hi everyone,

I post this in order to optimize my new project, but also to learn.
Charcter enters a maze; when reaching a fork, some buttons appears on the floor/walls and the player has to choose the right path (usless to specify how). If wrong, an animation sends back the character to the entrance of the maze.
Given that I can achieve this by putting many switch on/off events but also by using regions and many conditional branches in a unique parallel event, question is: which solution is optimal, in terms of optimization and resource usage? The game will be played in browser.
Thanks in advice to everyone, and greetings from Italy.
my way for this is using 1 parallel, 2 events on the sides (or 3 depends if they
can turn back).

set the main event on player though, and control the main event in parallel
to keyboard press or mouse click (event trigger with mouse) to show direction.
you can set those characters also on player touch and same as character with
"through" on and swap pages.

this way, you don't need a parallel event.

I've moved this thread to MZ Support. Thank you.

What are you using regions for? A few events for the buttons should work fine. Can the player loop back to a previous spot? I have a solution in mind that doesn't need a parallel event at all but I need to know the specifics before I suggest it. And as long as you don't have many parallel or autorun events or heavy use of say... lighting plugins on a map, there shouldn't be much lag.
Without seeing some example of your setup, it's almost impossible to give a relevant suggestion.

Just going off your description, I don't know why you would need a parallel event nor regions; I'd just put a player touch event on the floor at the fork which turns on a switch, activating the pages of the events on the walls to show their buttons.
Without seeing some example of your setup, it's almost impossible to give a relevant suggestion.

Just going off your description, I don't know why you would need a parallel event nor regions; I'd just put a player touch event on the floor at the fork which turns on a switch, activating the pages of the events on the walls to show their buttons.
I know this was quite difficult to understand without an example/pic, but in few words using regions instead of "floor switch" events was an idea to spare events (one unique "activating" regions with a parallel event instead of many single "activating" events), as there are many in the map.
However I tried both versions, asa a program and online, and didn't see differences.
Maybe my map isn' that big.
using regions instead of "floor switch" events was an idea to spare events (one unique "activating" regions with a parallel event instead of many single "activating" events), as there are many in the map.
Gotcha! I have good news for you-nyan - just having events on the map doesn't do anything! 😍 It doesn't matter whether you're playing it on your 'puter or the Web.

A-mew-singly, it's more efficient to have a few map events to cover an area than it is to have a parallel event running all the time. I mean, you might do other stuff in that parallel...I dunno...

But just for this, the parallel event is making your poor CPU do stuff at times when the player isn't anywhere near that fiddly ol' intersection-nyan.

Good luck! 👋

Original thread: https://forums.rpgmakerweb.com/threads/many-events-or-many-conditions-in-a-parallel-event.167276/