NPC turns invisible in game. Any know a way to fix it?

So Im making a game. and in a event. tbh the first battle you will encounter in my game when I beat the NPC he should change pose to lay down dead. But instead of showing this he become invisible. I know the even is there because I cant go trough the event. The other way I know he is there is if I save and shutdown my game. Start it again and load he is there, also if I replace him with other textures it works as intended.

I will share pictures of it:

We are talking about this guy here
1640916570030.png


so when im going trough my story so far and we are comming to this part.
and the event is running as it should into now.

1640916678806.png


The self switch B was a try for me to fix it I was just thinking perhaps there was to much action. But Self Switch B runs a Autorun event who do this
1640916814713.png


Self switch C is a blank event. whats importent is more the other Switch who runs this
1640916878676.png


In game this event is there but the texture is invisible.

when I load my game he is laying as intended tho the event have been reset but thats a minor mistake.
1640916994905.png

but when I run the game he should lay dead right where to red circle is.
1640917172480.png

but he dosen't. can any tell me why so I can find a fix.
You could use a second event where the screen is blank and have a non-self switch hide the original guard and show the new guard in the red circle. That'd be the simplest way to do this.
Hello,What do you want is to make a enemy that,as soon as you enter the map start a battle,then when you win it stay layed down dead for the rest of the game? if that is then you dont need normal switches and much less autorun events,just local switches(autoruns stop the process of all other events).If i undertand well you want this(It is in spanish but i think is posible to undertand)(if you want it to start as soon as you enter the map put it parallel)
20211230_213743.jpg
20211230_213757.jpg
your problem is with the automatic turning before the event switches to the death sprite.

the death sprite is only in one direction, the other directions are empty/invisible.
if the event was automatically turned into a different direction before switching to that page, then it retains that direction overriding the direction fix that is applied after that on the new page.

after battle processing and before control switch you need to use a set move route to turn the event into the correct direction for the death sprite.
Or move the 'down' sprite to the correct row of that spritesheet - based on which direction your NPC is facing just prior to switching to the down sprite. If it could be any direction, you could put your down sprite on more than one row.
Arrh okay thanks guys. It works now. right after the battle but before the switch turns on for Dead guard i have added a move route who makes so the event "Guard" looks down and now he do that in the fatein effect so it does not even looks bad.

I didn't know that it was a thing I just tought that if I replaced a image it would just reset him so that have helped me a lot. And it makes so much sense too. I mean the slime I tested with before writting this topic worked just fine, and have I used my logic I could have figured it out too but mostly because now I think back the slime was also set do look down but looked to the left.

Original thread: https://forums.rpgmakerweb.com/threads/npc-turns-invisible-in-game-any-know-a-way-to-fix-it.143463/