How to swap a sprite?

What you want to do is drag out your “sprite component” into the editor, then from the sprite component drag out and say “set sprite”. You will get the node you see above. From there, right click on the input “new sprite” pin and select “promote to variable”. Now you can change your sprite to whatever you make the “new sprite” variable equal to. You do this in the blueprint that contains the sprite. As for the last part of your question, you would need some sort of overlap event when the player is close or other event to create a widget that you add to the view port with your prompt. Then if it is a key press you would need to have some key input in a controller or player BP and a boolean connected to a branch node right after the input key to check if the bool is true or false to prevent swapping when the player is not allowed. Following the true execution you would then have this script above to actually swap sprites.