I want to have a plugin that makes it so a party member, while you are walking right, is visible and following you. But if you look back (any direction other than right), it disappears.
I know I can do something similar by leaving parts of the sprite sheet blank. But that doesn't create the effect I want. Because in doing that, you would have to walk in a direction for a party member to turn.
I'm hoping it can be activated with a command so that it can turn off/on.
I do have a follower toggle on/off in my options menu, but similar
effect can be made, with the game player dir !== 6, it will be invisible.
so 6 (right) would be visible, while up/down/left = not visible.
I don't have the time to make it currently, but can do it tomorrow if noone
response.
another way is using evented way, that you can hide followers.
you can run a parallel for this inside a common event.
Hmmm, I think it's like (change X and Y):
Game_Follower.prototype.update = function() {
Game_Character.prototype.update.call(this);
this.setMoveSpeed($gamePlayer.realMoveSpeed());
if ($gameSwitches.value(X) && this.actor() && this.actor().actorId() === Y && $gamePlayer.direction() !== 6){
this.setOpacity(0);
} else {
this.setOpacity($gamePlayer.opacity());
}
this.setBlendMode($gamePlayer.blendMode());
this.setWalkAnime($gamePlayer.hasWalkAnime());
this.setStepAnime($gamePlayer.hasStepAnime());
this.setDirectionFix($gamePlayer.isDirectionFixed());
this.setTransparent($gamePlayer.isTransparent());
};
EDIT: This is only for right direction, like you wrote. If you want it for all directions "looking away", you'll have to modify it.