# Best way to reset the positions of a puzzle?

**URL:** <https://forums.unrealengine.com/t/best-way-to-reset-the-positions-of-a-puzzle/442634>\
**Category:** Community & Industry Discussion\
**Tags:** rotation, child-actors, parenting, unreal-engine, puzzle, question\
**Created:** [February 3, 2019, 6:06am UTC](https://forums.unrealengine.com/t/best-way-to-reset-the-positions-of-a-puzzle/442634 "2019-02-03T06:06:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Re4verbot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Re4verbot](https://forums.unrealengine.com/u/Re4verbot)\
**Post date:** [February 3, 2019, 6:06am UTC](https://forums.unrealengine.com/t/best-way-to-reset-the-positions-of-a-puzzle/442634/1 "2019-02-03T06:06:49Z")

</div>

Hello I am making a puzzle system (see image below) and our idea is that all of the pieces on the grid (they are all separate actors) can reset if the player makes a mistake. On top of that, the puzzle (The floor with rings) will flip upside down in unison. So the floor will flip, while upside down the pieces will reset, and the floor will come back around. All of the pieces are rooted at the center so there won’t be a problem with rotation, its simply flipping them all at once.

What is the best suggestion to do this?

 ![267372-screenshot-477.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/3/af369d76d88e0464fdcba9b5fe4711c70d823d15.jpeg)

---

<div class="post-metadata">

**Author:** ![Re4verbot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Re4verbot](https://forums.unrealengine.com/u/Re4verbot)\
**Post date:** [February 4, 2019, 4:05am UTC](https://forums.unrealengine.com/t/best-way-to-reset-the-positions-of-a-puzzle/442634/2 "2019-02-04T04:05:31Z")

</div>

So could I do something like this:

There Is a button I press. When I press it, In BP it gets all actors of class with a Tag “Piece” and “PuzzleNumber” and that will reset them to the positions they started at from the construction script instance settings (not the blueprint original settings).

And how would I do that (I understand tags, more so what nodes to do plug for the reset)

---

<div class="post-metadata">

**Author:** ![Chyros](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chyros](https://forums.unrealengine.com/u/Chyros)\
**Post date:** [February 4, 2019, 11:15am UTC](https://forums.unrealengine.com/t/best-way-to-reset-the-positions-of-a-puzzle/442634/3 "2019-02-04T11:15:59Z")

</div>

Yes. Create a variable that will store their initial state (i.e., InitialLocation, InitialRotation, etc…) and then on BeginPlay, you set their values. When you call their reset, just restore their initial location using the saved values.
