Rewind/Undo


Author: Richie Chao

Posted on 2/27/2024

While working on my production task for this week, I encountered an issue while creating the rewind system. With the issue being the storing and movement/location of the pieces when a player action is undone. Although I was able to store the pointer for the pieces and its information into an array, the pieces were not setting their location properly. This is an issue because the player pieces would reset back to their original position on the board from game start instead of their previous location before they had moved to their current position.

I spent countless hours trying to fix this issue and get it working. After going through the code for piece movement, I realized that I was storing and using the wrong coordinates for setting the game pieces actor location when the undo action is used. After realizing this, I had an idea of what I needed to do, and after some trial-and-error, I managed to fix this issue.

Get World War Chess

Leave a comment

Log in with itch.io to leave a comment.