Hi everyone, thx in advance for any help.
I made this code below to create 2 save slots with a "delete" button:
I have one sprite with 2 frames (one for "empty" slot and one for "used" slot) for the slots and one sprite for the delete button which I made a duplicate so I have 2 slots. I put an instace variable in each one of the duplicates for identifying with slot is being clicked and create the save file, u can see in use in the code above....
The problem is the two slots seens to have being interacting with each other. If i start the game, save in slot 1 and try to delete that save, I have to click in the delete sprite than click in the slot again to it change to the "empty" frame; sometimes if u delete just one save the two slots change to "empty" frame; sometimes I need to click on delete in the second slot to delete the first; sometimes when theres a save in one and the other is empty, when i try to load one it changes to "empty" and the other changes from "empty" to "used" and a lot of other weird interactions.
Seens that I missed something when I used the "local storage" plugin or the "str" function, but I cant see where...