Hint System for Puzzle Game
I've working on a game that has a bunch of levels and I was considering putting in a hint system to allow users to get past some tough spots. Users are required to match objects in pairs, but the 2 objects might not actually be the right match for the order. Each level has a specific way to solve it and will likely require some undoing and state saves.
Arbitrary Example: There are 4 numbers on a line. 1-2-3-4. The pairs could be (1, 2) and (3, 4) and that would work, but it's not the solution. The solution would be to match (2, 3) THEN (1, 4).
I could always do a check to see if there is a valid move, but that wouldn't allow me to check if they already made a mistake. Most of these pairs will probably need to have a permanent association to their correct partner I would assume.
Is there any algorithm or design pattern out there that could help me build such a system? Hopefully I've given enough information. Thanks in advance.
Try to implement associative save and load state, in your project, At whatever instance of time where player will likely to fail and need to reload the state again. It might not suffice with the hint system's work, but i guess, It might just help a bit. Take a look at this tutorial to see how it may help you : http://gamedevelopment.tutsplus.com/tutorials/how-to-save-and-load-your-players-progress-in-unity--cms-20934
Thanks for the resource. I'll have to look into in detail to see if I can work with it. I'm sure I'll be back with a response when I get the chance.
Your answer
Follow this Question
Related Questions
How do I highlight all available paths with Dijkstra's algorithm on a tile based map? 2 Answers
Coloring encircled tiles 0 Answers
Spawning In Patterns 0 Answers
Game Score System Help 1 Answer