Script call to change player opacity

Is there a way i can change the player's opacity through a script? Doing it through a move route stops my player from moving for one millisecond, and even if it's not a deal breaker, it is noticeable and can get jarring. Thank you in advance
"Set the player to 255 (i.e. 100%) opacity":

$gamePlayer.setOpacity(255);
You might find this helpful:
Thank you! Problem is now solved.
You're welcome! Happy RPG Making~

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/script-call-to-change-player-opacity.151294/