Today, I will be showing you how to make a super fast and easy grid in Hopscotch! Believe me, anyone can make this! Let’s start!
First, put when game starts. Make a variable called x and y. Set those variables to the starting position of the first shape. Next, create the number of clones in the grid plus 1. If I want to make a chess grid, I would make 65 clones. If I was making a sudoku, I would make 82 clones.
Then, put when object is cloned, set image to the object you want. Put set position x to the variable x and y to the variable y. Then check once if clone index is 1, make it invisible.
We are almost done. Create another variable called Squares in a row. Put check once if Squares in a row = the number of shapes across, then set Squares in a row to 0, set the y variable to y variable minus the amount of space you want the shapes to be, and set the variable x to the starting x position. Here’s pictures of the code:
If you have any questions, tell me and I can answer it for you!