Comments

Log in with itch.io to leave a comment.

I dont know how to save between each scene. They keep return to the beginning stage T_T

I don't know unity, but I'm sure you have some kinds of variables stored somewhere you can access. The easiest thing to do might be to have two variables that are each arrays of Vector2s. So, you would have one that is like "bedroomPositions" and another that is "kitchenPositions." So, each time a room is loaded, all the items can be put back into their places. Here is some pseudo code of what that might look like


//For each item when placed

if item.type == "kitchen"

{

        kitchenPositions[item.id].x= item.x_position

        kitchenPositions[item.id].y = item.y_position

}


//when loading a room

for item in kitchenItems

{

    item.x = kitchenPositions[item.id].x

    item.y = kitchenPositions[item.id].y

}

Thank you so much!! I have so little knowledge of coding but I'll try it

Best of luck. I know these things can be difficult. The main point of this suggestion is that you need to have some variable that remembers all of the items' locations. Then, when you switch to the room, look through all the remembered item locations and move the items to those locations so that they show up where the player put them.

You also have to make sure to update the remembered item locations either right before switching rooms, or every time an item is moved.

You'll get there!

have 2 rooms now yay 

ก็น่ารักอยู่นะ