Make animated locker with "hide" function

Hello, How can I make this spritesheet into an event with a locker, where after pressing Z it would play the animation below and "hide" the player?

Also Im making maps in parallax and I kinda need this locker to be perfectly pixel to pixel in right position

upload_2019-4-9_13-18-22.png
One idea I think of is making locker as a parallax layer that will switch fast from 1-6 when pressing Z next to the locker. Its tricky but this way the locker position will be perfect and I wont have to play around with events too much.
The obvious answer would be to turn that into a character sheet and then use event commands to change graphics accordingly. That would make things extremely easy by simply editing the image file. If you do not want (or cannot) do it this way, you can always create a new sprite using the event. However, I do not recommend doing this if you are not very familiar with how these things work.

Just convert that into a character sheet (a single one or two named with $) and use Change Graphic with the proper timing
Use the grid feature in your graphics program so you know the placement of your locker will be as it should and the rest will work itself out like Heirukichi describes.

Original thread: https://forums.rpgmakerweb.com/threads/make-animated-locker-with-hide-function.107770/