# How to create a "Reset island" action in a puzzle game?

**URL:** <https://forum.godotengine.org/t/how-to-create-a-reset-island-action-in-a-puzzle-game/147929>\
**Category:** Help\
**Tags:** 3d, gdscript, godot-4\
**Created:** [November 30, 2026, 8:43pm UTC](https://forum.godotengine.org/t/how-to-create-a-reset-island-action-in-a-puzzle-game/147929 "2026-11-30T20:43:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silver-Wolves-Games](https://forum.godotengine.org/user_avatar/forum.godotengine.org/silver-wolves-games/32/45085_2.png) [@Silver-Wolves-Games](https://forum.godotengine.org/u/Silver-Wolves-Games)\
**Post date:** [November 30, 2026, 8:43pm UTC](https://forum.godotengine.org/t/how-to-create-a-reset-island-action-in-a-puzzle-game/147929/1 "2026-11-30T20:43:22Z")

</div>

### Godot Version

Godot 4.8 rc1

### Question

Hi ! I would like to implement a “Reset island” action, similar to the one found in A Monster’s Expedition.

Here is a clip to show what I mean :

I know that there is a UndoRedo class in Godot, but I do not know if it can be used for such an action.

Can you give me some hints please ?

---

<div class="post-metadata">

**Author:** ![tibaverus](https://forum.godotengine.org/user_avatar/forum.godotengine.org/tibaverus/32/43649_2.png) [@tibaverus](https://forum.godotengine.org/u/tibaverus)\
**Post date:** [November 30, 2026, 8:59pm UTC](https://forum.godotengine.org/t/how-to-create-a-reset-island-action-in-a-puzzle-game/147929/2 "2026-11-30T20:59:34Z")

</div>

Store the initial position and properties of each node in themselves, then have a function that goes through them all and calls a function to set them back.

---

<div class="post-metadata">

**Author:** ![renevanderark](https://forum.godotengine.org/user_avatar/forum.godotengine.org/renevanderark/32/74313_2.png) [@renevanderark](https://forum.godotengine.org/u/renevanderark)\
**Post date:** [November 30, 2026, 9:10pm UTC](https://forum.godotengine.org/t/how-to-create-a-reset-island-action-in-a-puzzle-game/147929/3 "2026-11-30T21:10:57Z")

</div>

> [@Silver-Wolves-Games](#):
>
> I know that there is a UndoRedo class in Godot, but I do not know if it can be used for such an action.

I think in this case the question should not be “can it be used?” but do you really need to?

I use the EditorUndoRedoManager a lot and it creates a huge stack of all your changes. For editing this is fine, even though even there it’s pretty error-prone (because for _every_ do step you need an undo step and the counts need to match exactly at all times or your you get scary memory leaks).

I’d follow @tibaverus advice and only consider adding a whole undo/redo stack if you’re making something like a full-blown level editor… (maybe that’s what’s in the clip; in that case, sorry I didn’t watch it).

---

<div class="post-metadata">

**Author:** ![Silver-Wolves-Games](https://forum.godotengine.org/user_avatar/forum.godotengine.org/silver-wolves-games/32/45085_2.png) [@Silver-Wolves-Games](https://forum.godotengine.org/u/Silver-Wolves-Games)\
**Post date:** [November 30, 2026, 9:14pm UTC](https://forum.godotengine.org/t/how-to-create-a-reset-island-action-in-a-puzzle-game/147929/4 "2026-11-30T21:14:07Z")

</div>

I’ll try creating a method called “reset\_node” and and connect them to an autoload signal.
