How to make a character disappear who're walking?

Hello.
I have a character, he must walk, and disappear little by little (with opacity) in the same time. It's something that looks simple, yet, I can't do that. 🙁
I tried many possibilities (for exemple, parallel event), and absolutely nothing works...
If it's part of a cutscene, have your cutscene managing event (there should only be one autorun controlling cutscenes at any time) do a Set Move Route on the character and at the point where he needs to disappear just set his character graphic to a blank one.
You can turn Transparency on for that event. You can find it in Set Move Route. Hope this helps!
Or, if you want him to gradually disappear you can use the opacity command within Set Move Route.
For example have him walk 3 steps, then set opacity to 200, walk 3 steps, set it to 150 and so on.
Sorry, I badly expressed my problem.
I want my character to disappear little by little.
That's basically what I've explained. The question is, why doesn't it work?
Did you assign the move route to the player character or an event? Is it the player character itself that is walking or is it a dummy event?
Can you show us the whole move route command?
I assigned the move route to an event and it's a dummy event. The character only goes up.
Try merging the two move route commands into a single one.
My guess is the second one overwrites the first one.
Here is a plain javascript event script solution.
PHP:
var dir = 8; var ev = $gameMap._events[this._eventId];
if(fadeOut === undefined)
  var fadeOut = setInterval(function(){
    ev._opacity--;
    if(!ev.isMoving())
      ev.moveStraight(dir);
    if(ev._opacity === 0){
      ev.erase(); clearInterval(fadeOut);
    }
  }, 25);
fadeaway-opt.gif
@Gonor is correct in his assumption, all events can have only one move route assigned to them, giving them another moveroute will always delete the first one.
So @Poupouille you need to combine all move routes for a single event into one move route, or it will not work.
Try merging the two move route commands into a single one.
My guess is the second one overwrites the first one.
But I can't, if I do like this, my character will walk, and stop, and walk. It will not be fluid.
Here is a plain javascript event script solution.
PHP:
var dir = 8; var ev = $gameMap._events[this._eventId];
if(fadeOut === undefined)
  var fadeOut = setInterval(function(){
    ev._opacity--;
    if(!ev.isMoving())
      ev.moveStraight(dir);
    if(ev._opacity === 0){
      ev.erase(); clearInterval(fadeOut);
    }
  }, 25);
fadeaway-opt.gif

This! Perfect!
Thank you!
@Mogwoi: I have a last question for the script.
If I want to apply the same thing for another event (another character). What should I change?
Indeed, in my map, 2 characters must go by disappearing.
If you know the event ID, like EV004 replace this._eventId with 4. It doesn't have to be named EV004, but that's his ID always.

You can put them both in the same interval like ev2 = $gameMap._events[4]; and repeat steps.

EDIT: Also, my GIF was sped up by Gifsicle. You could change _opacity--; to like _opacity-=5 or -=15 or something if it fades too slow.
But I can't, if I do like this, my character will walk, and stop, and walk. It will not be fluid.
Not if done correctly - it needs to be one move route, where the change opacity commands are given between the move commands but without the waits between them. You need to use the move time instead of the wait time to create fluency there, because you can't have several move routes on a single event.

And
Double-post notice: Poupouille
If you want to answer several people, use multiquote (the +quote button) and if you have to add something and your own post is the last one, edit that post.
It doesn't work for other character.
It is good?

@Andar : I understood for double posting, sorry.
Can you show me a screenshot? It's a bit technical and I have a hard time understanding.
1488464584-capture-d-ecran-2017-03-02-a-20-22-45.png
change ev to ev2, and put him next to ev in the first interval

so like
PHP:
ev._opacity--; ev2._opacity--;
PHP:
ev.moveStraight(dir); ev2.moveStraight(dir); // 2, 4, 6, or 8 like on a num pad arrows
PHP:
ev.erase(); ev2.erase();
It's working, thank you!
@mogwai:
I have a problem. I don't know if it's because your script: when characters disappear, I would like a cross fade of my BGM music, but I can't. Do you know why?
Oh yikes! On parallel, hundreds of intervals will be set and be non-clearable. This will only make one interval on parallel and I added an audio fadeOut.
PHP:
var dir = 8; var ev = $gameMap._events[this._eventId]; var ev2 = $gameMap._events[2];
if(this.fadeOut === undefined){ AudioManager.fadeOutBgm(15)
  this.fadeOut = setInterval(function(){
    ev._opacity--; ev2._opacity--;
    if(!ev.isMoving()) ev.moveStraight(dir);
    if(!ev2.isMoving()) ev2.moveStraight(dir);
    if(ev._opacity === 0){
      ev.erase(); ev2.erase(); clearInterval(this.fadeOut);
    }
  }, 25);
}

My event script always has a pseudo minified look because it can only be so many lines high.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-character-disappear-whore-walking.75487/