This article or section may not have content matching Scratch Wiki editing standards. Please improve it according to Scratch Wiki:Guidelines and Scratch Wiki:Editing Conventions. (November 2017) |
Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (May 2019) |
A puzzle game is a type of game found on Scratch. This genre is focused on introducing game mechanics while forcing the player to interact with them in creative and obscure ways to accomplish a goal.
Types of Puzzles
Although puzzle games may vary, here are some common puzzle games made on Scratch:
- Maze
- Jigsaw
- Battleship
- Chess
- Sudoku
How To Make A Puzzle Game
Maze Game
A maze game is a game where the goal is to get the character to the finish, by using arrow keys.
First, one should make the maze. Here is an example:
Then, create the character, e.g. a small black circle, and the finish line, e.g. a flag with black and white rectangles.
For the character, create these scripts:
when [right arrow v] key pressed change x by (10) if on edge, bounce // This means that if it goes to the edge of the screen, it bounces back when [left arrow v] key pressed change x by (-10) if on edge, bounce when [up arrow v] key pressed change y by (10) if on edge, bounce when [down arrow v] key pressed change y by (-10) if on edge, bounce when gf clicked forever if <touching [#008000]?> then // Should be the wall color change x by (10) when gf clicked forever if <touching [Sprite2 v]?> then // Sprite or color can do switch backdrop to [you win v] // Optional
Examples
Jigsaw Puzzle
A jigsaw puzzle is a type of puzzle where one combines pieces to form a picture. Usually, jigsaws range from just four pieces to hundreds of them.
First, create the pieces. One can use any paint editor to create them.
Then, place these scripts on each of the puzzle pieces:
when gf clicked forever if <(distance to [any surrounding piece v]) < (15)> then go to [any surrounding piece v]
Finally, allow it to be dragged. Just click the blue "i" near the sprite thumbnail, then allow it to be dragged on player.