[SOLVED] Load game and create object

Hi!

I have this code:

I’m definitely doing something wrong lol
As you can see, I am creating objects on the screen, so I have a collision with an object. So far so good!

However when I make this collision I want to save the position of the created object and then load it when starting the game.

I’m trying to load it, but it’s not going at all! What can it be?

PS: ignore “at the beginning the scene”, It doesn’t work even if I remove this line of code.

I’m not sure you can build strings like that in storage.

I think you need ToString(“mapX” + obj_map.Variable(blah)), but I’d really recommend you instead build out your save data into a structure scene variable, and then you can just save/load the structure variable parent instead of storing each item.