Moving items and keeping their place?

● ARCHIVED · READ-ONLY
Started by Koi 5 posts View original ↗
  1. So basically I've got a bunch of rocks. You move the small ones around to get out, but there's a lot of possibilities for where you can move the rocks. I want the player to be able to move them, and then when they return to the room the rocks will be where they left them.

    YBjh6x9.png
  2. Does this script suffice?
  3. For a puzzle like this, the ability to leave the room and have everything reset to its original position when you come back is a way to prevent the player getting stuck.

    What will happen if they push a rock into the wrong place and block their path? If they can't get around to the other side to push it out again, and they can't go back to the previous map and re-enter the room to have everything reset, how will they continue the game?

    In your screenshot, it looks like the only rock that can be moved initially is the one two tiles below the character. So let's say you push it down, then you walk around to the right of it and push it left into the corridor. What happens then? The location has been saved, so you can't reload them in their original positions. You can't get around behind it to push it back out of the corridor. Stuck.
  4. As always, Shaz comes to the rescue! This is exactly what I need, thank you guys!

    Also Shaz, that screenshot was taken after having completed the puzzle XD The buttom of the cave walls are actually tiles to walk on. And I've been testing out the puzzle constantly to see if it's possible to block the player in. Any time that happens I rearrange it, and I do see a few things to still fix, but I'm not worried about that :3
  5. You would have then make a event that the player can hit to reset the rocks back to their original location. set event location command.