I'm making a sokoban-like game and I want the player to undo a push when they make a mistake.
I'm thinking maybe an event (or common event) can record the moves the player and the boxes make then when a player triggers a button it will undo or reverse the last move.
But I don't exactly know how to do that so please help or suggest a better way to do it. Thanks in advance.
I'm thinking maybe an event (or common event) can record the moves the player and the boxes make then when a player triggers a button it will undo or reverse the last move.
But I don't exactly know how to do that so please help or suggest a better way to do it. Thanks in advance.