So I'm doing a cutscene of my game where a lot of people are there, but I need to have all the NPCs disappear as soon as that cutscene is over. How do I make an event so that all the crowd disappear, or is there another way of doing it, e.g, having the crowd as one big event?
Need help with large events
RPG Maker VXAce SupportCreate a new switch and name it so that you don't accidentally use if for something else. Have a second page on each of the NPC events, with no graphic and no command but with the condition that Switch #n (i.e. the one you've just named) is ON.
At the end of that cutscene turn on that switch, and all events will move to their second page - crowd gone.
As this is very basic eventing, could I suggest you pause your game and have a look at Andar's compilation of info for new users. Among the excellent things there, he links to 2 playable tutorials, one on event commands and one on switches and variables. Playing through those will give you a solid foundation in the 2 most important elements of making a game.
At the end of that cutscene turn on that switch, and all events will move to their second page - crowd gone.
As this is very basic eventing, could I suggest you pause your game and have a look at Andar's compilation of info for new users. Among the excellent things there, he links to 2 playable tutorials, one on event commands and one on switches and variables. Playing through those will give you a solid foundation in the 2 most important elements of making a game.
In my opinion this solution might prove quite good BUT it depends what happens in your cutscene. Having the crowd in a single event is better if you have something moving on a fixed path (provided that it does not pass through any character displayed in the crowd event). Having the crowd as a single big event does indeed prevent the engine from calculating collisions with far away events at each step (since there is only one event) thus improving performance.
If you want to be able to use your events for something else (like moving them separately or literally anything else) then using multiple events might be a better solution (and you do not need to merge all the sprites in a single one as well).
In a cutscene, you choreograph the movement of the characters - there is no need for the engine to calculate any collisions (it'll still check, as you move, but that's no different to any other map where you have a decent number of events).
I don't think I've ever seen anyone use a single event for lots of NPCs just so they can have them all disappear at the same time.
those riders are one single event with a really big sprite.
I know.... just when you think you've seen everything....
if the crowd *disappears*, vanishes, instantly, setting all events to null sprite should do the trick.
if the crowd *leaves*, you gonna have to get creative with move routes.
3 !== lots 🙂
just use an even larger sprite (which would be even sloppier! like.... an entire roof of a barn.... yes, I did that too.)
It's doable if they're all standing still, but once you want them to start moving, and not all in unison (same direction, same time), a single event just doesn't work.
I'd rather use multiple events than spend the time creating the sprite to have lots of people in a single event. The biggest benefit I see to that is that you lose the grid restriction.
I'd rather use multiple events than spend the time creating the sprite to have lots of people in a single event. The biggest benefit I see to that is that you lose the grid restriction.
That's exactly why if all they have to do is just stand and then disappear and you have to move the player sprite it is more efficient to have them in a single event. And of course the other way around is no different as any other map with a high amount of event but sometimes you really don't want to use too many events. The quadratic cost for the collision algorithm is not that great for low CPU computers (like small netbooks for example).
I remember my old netbook computer being only able to run smoothly with 9 or less events in a single map. Having them all in a single event is indeed useful for those computers even if the only thing you have to move is the player itself.
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-large-events.105536/