How do you change a character's appearance when it walks into a collectable

I want my player to change his appearance when he walks into a certain collectable item. I have made a gun sprite, so when the player walks into it he can collect it, however, I can’t seem to find out how to change the character’s appearance so that he is carrying the gun.

You can make an animation with just 1 frame and start the animation when you want to change the appearance of the player (so when you collide with the collectable item you have to start the animation). Also make sure “stay on last frame” is enabled so it doesn’t go back to the original sprite.