Designing the Perfect Puzzle

I was wondering if you all had any personal tips or tricks when it comes to designing puzzles in your game.

I only have a few (developed after seeing some play testing). Almost all of my puzzles/puzzle-like things are logic based with no outside information. I learned this after watching my girlfriend play my game. She approached an area where (unbeknownst to her) two statues were going to trigger and shoot fireballs at her (exactly like in "Neverending Story," and right before the trap triggers, the main actor says, after panting "[t]his story just never ends," which has the obvious meaning of "I'm so tired" and the subliminal foreshadowing of "OMG this is from Neverending Story!." Since she never heard of the reference, she not only thought it was poor writing, but also useless.

Another thing I keep in mind when designing a puzzle is multiple-interactions. All of the puzzles in my game can be solved several ways and some even lead to other paths. I think this keeps the game fresh and highly re-playable.

Does anyone here have any insight on this topic?
Just a suggestion of something to be careful about, and that is - don't make your puzzles dependent on the player having really good reflexes, if that is the only way to solve them.  You immediately prevent a significant group of people from succeeding, through a factor over which they have no control.  There might be a place for a reflex puzzle in optional puzzles which do not give rewards that could significantly influence the player's ability to complete the game.  In my opinion (and I'm biased here, because my reflexes are pretty ordinary) for a reflex puzzle to be obligatory to continue the game is deeply frustrating and could force the player to quit if the bar is set too high.
To extend ksjp17's post, reflex/timing based puzzles often shouldn't be entirely unforgiving (notable exceptions being in games where these kinds of puzzles are the norm). They should give the player some time to acclimatize themselves before the game truly punishes (death/major damage).

As for the "perfect puzzle", it really depends on your game. Heavy in combat? Make the bosses into puzzles. Heavy in story? Make the puzzles story related in someway (dialogue puzzles for example). How about just heavy in puzzle solving gameplay in general? Then just make sure your puzzles are different enough but still build on some core gameplay and bring it all together occasionally.

In short, just make sure your puzzles make sense for your game and don't add random ones in "just because" but rather because its needed. The point of the puzzle in a non-puzzle-oriented game, really, is to change the pace up.
Make it skippable, but at a price.

The reason is that, no matter how good your puzzle-making skills are, there will always be people who won't like the kind of puzzles you're using.

Give those people the option to skip the puzzle, but give a reward to the ones who complete it. This way, the people who like your puzzles will feel rewarded, and the ones who don't will just exchange one kind of difficulty for another kind (since they don't get the reward, upcoming battles will be a bit harder).

If you make your puzzles mandatory, you either have to make them easy enough that anybody can complete them without too much hassle (and people who like puzzles won't feel challenged enough), or you'll lose a part of your audience.

Of course, all of the above doesn't apply if puzzles are the core element of your gameplay. In that case, you probably don't want people who dislike puzzles to play your game.
Birth By Sleep Ice-Cream minigame comes to mind. Argh, that was annoying due it was obligatory with one of the characters.
Puzzles are all about the "Aha!" moment. The moment when that player realizes "oh, so that is supposed to do this! interesting..." or, when the player experiments with a certain mechanic and discovers "aha! so that's how I solve that puzzle, using this mechanic instead". As long as there is a point A (starting point), and a point B (desired point), a number of obstacle/s in between and a possible solution, then it is a puzzle.

Puzzles should build on top of each other. A combination of simple mechanics can make a puzzle complex and nice to solve. For example, pushing a rock onto a button to open a gate is simple enough. Now the player knows that every time an object is pushed onto a button, then a gate is opened. But what about if there's 2 buttons? You push the boulder onto one button, and the gate doesn't move. You push another boulder onto the other button, and the gate opens. "Eureka!" A boulder is needed on *both* of the buttons in order to push open the gate.

When I design puzzles, I just think: what will make the player most happy when they solve the puzzle? What will give them the biggest amount of excitement they can get, and how can I make that happen? That's the art of designing a puzzle.
When I'm making puzzles, I like to do about 3 or four of the same type of puzzle in an area. This way I can introduce the puzzle mechanic and increase the difficulty with each one while eventually getting that last one that I try to make as challenging as possible. Also, I think puzzles tend to work better when they're incorporated into the environment/setting of their location. Like gcook725 said, puzzles should change up the pace and serve as a distraction, of sorts, from the main grind of gameplay while at the same time, not completely disconnect the player from the game. The idea of some super carnival with all sorts of games and such always annoys me.

One thing I will try doing is what Cozzer said about making puzzles optional for a price. I never really thought about it like that.

Original thread: https://forums.rpgmakerweb.com/threads/designing-the-perfect-puzzle.23942/