This example saves the x and y positions of the two sprites. Press the green flag or space to move the sprites. Press the "Save" button to get a save code and copy it. Press the "Enter Code" button to enter a save code to return sprites to a previous position.
See inside for more notes on how this works. I could have opted for more efficient code by having all this information immediately be added to my Save Code variable or Save Code to Copy list, but I've added it to individual lists firsts and parsed back to individual lists first to help me more easily visualize how this is working and debug my code. (You can see my other account's remix Save Code Example - Tera Dressup for a different version https://scratch.mit.edu/projects/1311758173) You can check out my video tutorial on Variables and Lists on the official Scratch YouTube channel (ScratchTeam) and find a link to written resources related to this topic in the video description.