about the first question, You mean something like this?
what i meant is like,how to make the walk animation play even the Sprite/Player is walking to a solid object?
so the sprite/player stays in place and the walk animation plays.
imagine walking to a wall in a game, the character would still be running but wont go anywhere
sorry if it wasnt clear enough