Hamburg, April 2026
O.K.
Clickpuzzles have been part of adventure games or rpgs for a long time. From DOS adventures from the early 80s over win 3.11 or later windows games you can find them in many many games. From early 2D games up to doom 3 or Skyrim you can find them very often as a challenging part of a point and click adventure or in an advanced 3D Game.
Here is a descripion on how to create a puzzle for your game and also a small Gamestudio 3D example world with sound and moving stones and a gate.
1.
The easyiest way: The password puzzle:
First define a solution string like solution_str = "beans"
Then create an empty input string like input_str = ""
Ask the user/player now to type in the correct code or password.
(In Gamstudio it can be done via inkey (STRING*);)
Compare the solution_str with the input_str.
with str_cmp.
If the 2 strings match something can happen, that what you wanted.
2.
Clicking on the correct sprite in a 3D world from a group of sprites. Only one or two clicks on one or two sprites are allowed. A solution variable must be defined first, lets say to 15 and a zero input variable. Only the sprites which add 7 and 8 to the input variable will solve the puzzle, if the two variables do match. Puzzle must be reset to set input var to zero if clicks were wrong.
3.
Clicking on sprites in a certain order. Each click adds a definded character to the input string. The sequence of the clicked characters should match the solution string when compared.
solution_string="fun"
input_str=""
If clicked on a certain sprite add "f" to the input_str
next:
If clicked on a certain sprite add "u" to input_str
next:
If clicked on a certain sprite add "n" to input_str
compare input_str to solution_str
If they match let things happen.
If not, clear the input_str and start again. You may use sound samples to let the player know that he failed or succeded.
4.
You can also use models of course and add sounds and movements.
The add char to a string method could also be used for getting certain items in a certain order or performing certain actions, one after the other, to trigger something.
Note: In my demo level I use stone mdls with numbers on it. It would be a bit more difficult without any numers. Anyway I leave it up to you what kind of stones or objects/sprites you place in your level as a puzzle input.
Feel free to use the script parts I have created for the puzzle as a barebone for your game.
NeoDumont
Best wishes !
Demo Level Download:
Clickpuzz demo level![[Linked Image]](http://Juergen-hunke.square7.ch/Cshot_0.jpg)