Common event makes player invisible

When player transfers to a map via a common event the player becomes transparent. Player is not suppose to be transparent, nor was player transparent before or during the transfer. In my game, the Items menu lists maps that you transfer to via a common event. When you transfer, you go to Map002, which in turn transfer you to the map of your choice (Lobby, etc.) This is so the map resets so the player can retry it. Control variable 1 decides which map Map002 transfers you to when you choose the map in the Items menu. But even directly transferring to the map (in this case, Lobby) makes the player become transparent. This is the case, though, with every map, not just Lobby.

Spoiler
items menu.PNG
items menu2.PNG
common event.PNG
plugins.PNG
map event.PNG
map event2.PNG
What does the NOTETAG on the first Picture do? <noq>
The events look fine far as I can tell, minus the redundant fade out/fade in, so maybe the issue lies with the map itself. Does the player become transparent even with a regular transfer event? And what if you set the players starting position in that map?

@Bex Looking at the plugin list, I have a hunch its from that hide quantities plugin. It's probably irrelevant is that's the case.
The events look fine far as I can tell, minus the redundant fade out/fade in, so maybe the issue lies with the map itself. Does the player become transparent even with a regular transfer event? And what if you set the players starting position in that map?

Thank you! Just did a regular transfer and player was still transparent. Transferring to the same room the player is doesn't work; nothing happens.


@Bex Looking at the plugin list, I have a hunch its from that hide quantities plugin. It's probably irrelevant is that's the case.[/QUOTE]

Thank you! I turned the plugin off and the problem persists.
What does the NOTETAG on the first Picture do? <noq>

Sorry, thank you. That notetag refers to the plugin Hide Item Quantities. I turned the plugin off but the problem persists.
Analyze the situation.
Where do you think the player SHOULD have turned transparent? Check those first.

There are lotsa way player could turn invisible.
> Set move route : Transparent ON
> No actor in party
> Player character image is changed to none / transparent image
> CMIIW, that's all

Which is the case do you think? Check it one by one by doing these after the transfer event :
> Set move route : Transparent OFF
> Re-add actor to party
> Change player character graphic

If it's still invisible after doing those, you may conclude that the problem is from either something parallel process or script.
Analyze the situation.
Where do you think the player SHOULD have turned transparent? Check those first.

There are lotsa way player could turn invisible.
> Set move route : Transparent ON
> No actor in party
> Player character image is changed to none / transparent image
> CMIIW, that's all

Which is the case do you think? Check it one by one by doing these after the transfer event :
> Set move route : Transparent OFF
> Re-add actor to party
> Change player character graphic

If it's still invisible after doing those, you may conclude that the problem is from either something parallel process or script.

Thank you. Changing the actor image on the map's autorun event (see last image) has made the player visible, but I don't understand why. I didn't change the actor's image or make transparent beforehand.
Maybe check "Common Event 27" its called Mode Invisible. Maybe you used a Switch or Variable that is also used in that Mechanic.
Dont forget to make a Back Up Copy of your Project before changing to much in it.
Maybe check "Common Event 27" its called Mode Invisible. Maybe you used a Switch or Variable that is also used in that Mechanic.
Dont forget to make a Back Up Copy of your Project before changing to much in it.

Thank you. Mode invisible can't be activated as I haven't set up any of the modes yet.
on the map's autorun event (see last image) has made the player visible, but I don't understand why. I didn't change the actor's image or make transparent beforehand.
You're wrong - the truth is that you don't remember to change the actor image beforehand, but since this command made the player visible again that is proof that you indeed did so and just don't remember where you did it.
You'll now have to check every event on the map before the transfer and every event on the map after the transfer as well as every common event to find out where you did that and correct the problem of what went wrong.
You're wrong - the truth is that you don't remember to change the actor image beforehand, but since this command made the player visible again that is proof that you indeed did so and just don't remember where you did it.
You'll now have to check every event on the map before the transfer and every event on the map after the transfer as well as every common event to find out where you did that and correct the problem of what went wrong.

I've checked every event and common event. None of them make the player invisible.
If you would like to zip up your project and send me a link I can take a look at it for you. Actually I probably don't need your entire project - the data folder should give me everything I need to look at. Maybe the js folder and its subfolders too.

The player doesn't just turn transparent. You have some rather weird stuff going on in your events (why fade the screen out in the common event then fade back in? Why use an autorun to fade in then activate a new page with a self switch? That means if you transfer to that map a second time it's not going to do the fadein).
If you would like to zip up your project and send me a link I can take a look at it for you. Actually I probably don't need your entire project - the data folder should give me everything I need to look at. Maybe the js folder and its subfolders too.

The player doesn't just turn transparent. You have some rather weird stuff going on in your events (why fade the screen out in the common event then fade back in? Why use an autorun to fade in then activate a new page with a self switch? That means if you transfer to that map a second time it's not going to do the fadein).

Ok, I'll PM you.
Actually, the whole game will make it easier. Please put the player's starting position in a location where I can reproduce this straight away, and provide an event that will give me everything I need. The last thing I want to do when helping people debug is play the game for half an hour, guessing what I need to do, before I can make the issue happen.
.... why do I feel like there's misunderstanding here?

You are saying that out of all these three command :
  • Set move route : Transparent OFF
  • Re-add actor to party
  • Change player character graphic <<< ONLY this fixed your player's invisibility, right?
That could only mean either of these two command exist in any of your event.
upload_2019-1-27_7-35-23.png

I don't see any script call error, nor can I blame any plugin from what you show there.

Just like Shaz, with exact same question, I don't understand your event either. Unless by "invisible" you mean the screen turned pitch black due to you entering the room the second time.
sorry - I will need your entire game folder, because you are using resources that aren't included with the RTP. If you could please zip up the whole thing and send to me, along with steps - do you choose hero, do you choose villain, does it matter, what do you do then, in order to make the issue happen?

I think I know where it's happening, but I need to be able to play the game to confirm.

Edit: it's not what I thought it was, but knowing now what causes it, I can't believe I didn't pick it up sooner, as I had to grapple with a very similar issue with my own game.

It's got nothing to do with the transfer happening in a common event - it would happen if you had a map event that did the transfer as well. It's because of the way you're setting up the player's initial sprite.

If you want to change the player sprite permanently, you need to use the Change Actor Images command (under System Settings on page 3), and not the Change Image command within a Set Move Route. If you do a Change Image in a Move Route on the player, it's not a permanent change, and it reverts back to whatever was the last permanent change (either in the database, or from a Change Actor Images command) when you transfer to a new map.

So you're starting off with an actor with no image, then in your opening cutscene for character selecting, you're changing the actor to be the hero or the monster using the Set Move Route's Change Image command, and when you transfer to a new map, it's reverting to whatever it was before the move route.

So ... get rid of those move routes where you change actor 1's image and replace them with Change Actor Images.


In addition, get rid of the fadeout before the transfer and all the fadein autorun events. They're not working the way you expect them to - just do two transfers to different rooms and/or back to the same room and you'll see it only fades back in on the very first one. I'm not sure why you added a manual fadeout/fadein then changed the transfer to not do a fade at all.

You should probably read up a bit on autorun and parallel process events and disabling them permanently and temporarily, because there are a few "design" mistakes here. You also don't need to set an event to autorun just to make it do stepping animation. Only one autorun will run at a time.
sorry - I will need your entire game folder, because you are using resources that aren't included with the RTP. If you could please zip up the whole thing and send to me, along with steps - do you choose hero, do you choose villain, does it matter, what do you do then, in order to make the issue happen?

I think I know where it's happening, but I need to be able to play the game to confirm.

Edit: it's not what I thought it was, but knowing now what causes it, I can't believe I didn't pick it up sooner, as I had to grapple with a very similar issue with my own game.

It's got nothing to do with the transfer happening in a common event - it would happen if you had a map event that did the transfer as well. It's because of the way you're setting up the player's initial sprite.

If you want to change the player sprite permanently, you need to use the Change Actor Images command (under System Settings on page 3), and not the Change Image command within a Set Move Route. If you do a Change Image in a Move Route on the player, it's not a permanent change, and it reverts back to whatever was the last permanent change (either in the database, or from a Change Actor Images command) when you transfer to a new map.

So you're starting off with an actor with no image, then in your opening cutscene for character selecting, you're changing the actor to be the hero or the monster using the Set Move Route's Change Image command, and when you transfer to a new map, it's reverting to whatever it was before the move route.

So ... get rid of those move routes where you change actor 1's image and replace them with Change Actor Images.


In addition, get rid of the fadeout before the transfer and all the fadein autorun events. They're not working the way you expect them to - just do two transfers to different rooms and/or back to the same room and you'll see it only fades back in on the very first one. I'm not sure why you added a manual fadeout/fadein then changed the transfer to not do a fade at all.

You should probably read up a bit on autorun and parallel process events and disabling them permanently and temporarily, because there are a few "design" mistakes here. You also don't need to set an event to autorun just to make it do stepping animation. Only one autorun will run at a time.

Thank you, this solved the issue!

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/common-event-makes-player-invisible.104914/