[Solved] Making an NPC appear (or be invisible until the right time)?

I'm still mostly just experimenting with what the program can do but i wanted to toss together a cutscene to see how that worked. So far everything's working fine except I cant get the three blue guys at the top be invisible and then appear when needed.

I tried the set transparency to 0 but they are still visible for like half a second. I did see a camera plug in that would probably work to keep the camera off them for a couple seconds but figured I'd check into how to do it in engine before i start digging into plugins.

The way it should work is after some movements and dialogue, the older looking guy will go to a door and open it, then the three blue NPCs would walk out, becoming visible either in the doorway or just before it. (If curious as to why they're blue and naked. They are stand in sprites for clockwork / automatons. Same goes for the rest of the room actually lol.)
Capture.PNG


Not sure if this is the correct way to work a cutscene that auto runs on start up but it's worked so far.

Capture3.PNG


You cant see in it in the screenshot but i do have the Control Switch A turned on and the second page blank.

Capture2.PNG


I also checked into having the three NPCs image change but that seems to only work with Actors.

From some of the videos I watched, I'm pretty sure the answer has to do with switches but beyond that I'm not sure.

Thanks
I'm on MV but I'm pretty sure you just start the "Three blue Guys" on a blank event page with no sprite and just flip a switch to page 2, where they are then visible (The character sprite selected and everything) on MZ as well.
Move routes process a maximum of one move command per frame. Also, events pause between moves for a time based on their Frequency. Both of these might cause a delay (not ideal).

Instead, you can use event page conditions. These are the options on the left, which you cropped out of your screenshots:

eventEdit.jpg
Page conditions are checked from the highest to the lowest page (e.g. page 2, then page 1). The first page with all conditions met will become active. The event is represented by its active page. If no page is active, the event is inactive/"erased".

In your case you could give page 1 of each of the NPC events Condition: Switch X is ON. Then turn on that switch when the NPCs should appear (and turn it off if/when they should disappear).

For an example you can check out the Treasure Quick Event (right-click an empty tile on the map when in event mode).

Page conditions are an important tool for implementing changes in events' appearance/behaviour that persist for the rest of the playthrough.
@lokiie1984
an event is more than its contents.
that is something that every new user should really remember, both because a screenshot of only the content part is often useless, and because the answer to your problem is outside the content.
as already mentioned above you need multiple pages, one page without a sprite and one with it, and conditions to make the page with the sprite active when you want the events to become visible
Yeah my Guess is he used Autorun instead of Parallel Process, thats why those NPC are still visible for a split second. But the shown Pictures are incomplete, so it could also be caused by something iam
not aware of. Sometimes there are even multiple Errors.
The side content was empty, which is why it was cropped out but good to know for the future.

Here are those.



Capture.PNG

Capture2.PNG

Those two are the event.

Capture3.PNG
The last one is my map001.

So far the switch event works to make them appear when I need but it seems to be messing up their movements. When I flip the switch in the event should I then move the rest of the cutscene to page two?
should I then move the rest of the cutscene to page two?
no

in a cutscene, all events should be remotely controlled by a single controlling event, and the other events (that pretend to be NPCs) should be empty placeholders that contain not a single command.

In your case, all three "ghost" events should have two pages empty of commands on action button trigger, first page completely empty without condition or sprite, second page with sprite and a switch as a condition to make the sprite appear.

then you have a different event controlling the cutscene that give the control switch command to make those three ghosts visible at the moment in the cutscene that you want them appear.

and even the move commands should be given remotely to the three events by the controlling event.
when dealing with multiple "actors" (the sprite characters that move on the screen, when speaking from a cutscene point of view), it's better to have a main event control the movement (the "director" of sorts).
all the actors should be blank, with no move routes, and no parallel/autorun messes.
you give the route to these actors at the time that the director reaches that point of the choreography.
that's what the instruction "set move route" is there for.

(NINJA'D by @Andar lol)
Thanks for the info. I have been using a master event to control everything. Like I said, so far I'm surprised at how easy it's been. I was hoping I could copy and paste the event to the forum so you could see but it that would be too easy. Screenshots would work of course but it's getting a tad long.

So I tried what @Andar said, but then the cutscene wouldn't run at all. So I removed the blue guys events but it still wont run. Easy until it's not lol. It does transfer maps correctly but no movement or dialogue.

Scratch that, I had turned on self switch A on the wrong page.

Edit-
And tested, Yay it works. Thanks for the help.
As I mentioned, you don't need a blank page 1, since if no pages meet their conditions the event will simply become inactive. If you do use a blank page 1, consider setting its:
  • Through flag on - so it doesn't block other event movement, and
  • Trigger to Player Touch - so it doesn't block other Action Button event triggers, e.g. trying to talk to an NPC while standing on the "inactive" event.
Good to hear you got it working, though! 👋
So far I'm pretty impressed with the program. I have the first cutscene completely set up and it's working perfectly for what I had in mind. For comparison, I did an 8 hour tutorial with gamemaker studio twice over. Both times I had completely different issues that couldn't figure and just had to move on with.

I always heard people say ( or rather read online) that rpg maker couldn't do very good looking or interesting games. Glad to see it was just people being picky on features or the freedom to code it how they want.

But it's been fun. I don't foresee too much trouble getting the game to do what I want. I do foresee some issues getting it to look the way I want though. But that's my lack of art skills.
I always heard people say ( or rather read online) that rpg maker couldn't do very good looking or interesting games. Glad to see it was just people being picky on features or the freedom to code it how they want.
it isn't even being picky, it is a misunderstanding of the true causes for the bad games.

It has always been said that the RPG-Makers are simple enough for a child to understand and use.
But while that is the truth, it both an advantage and a curse, because it does not remove the work/time needed to get quality results.

and there are a lot of users who could learn the basics quickly but then refused to put in the work required for a quality game - if the child in question even understands what quality means. For example a few years back there was one user who proudly claimed that he was able to create sixty large maps over only one weekend and didn't understand why other people used to work for weeks on a single map, they had to be bad mappers for that. And after a long discussion he showed a screenshot of one of his maps - an autogenerated dungeon with about five minutes spend to add ten decorations....

That is what some people base their opinion on, but there are quite a number of high quality games as well. But a single high quality game needs multiple years of work from a dedicated developer, while the bad examples are abandend in dozens each month and still put to the public...
I get that. Self published books are in the same boat. People whip out a "book" get the first couple chapters looking really good and then it just goes down hill from there. My dad likes to read them away (mostly because they are free) but he can over look the flaws a bit more then I can.

For now with rpg maker, I'm learning with the game I'm working on so I don't see it ever being released for money. Once I'm done if it's good and not a mess I'll let people play it. But definitely not something I'd be willing to accept money for.

Besides the fact that it's pretty much a fan fiction of the City of Heroes mmorpg. I don't wanna get sued lol.

Below is the room that first cutscene I mention above takes place in. It's getting close to being done. Took me probably a few days. But doing bigger maps, and having it look good. I cant imagine it taking less then a month at least. Unless some massive corners are cut.

Capture.PNG

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-making-an-npc-appear-or-be-invisible-until-the-right-time.148095/