Any one have an idea how to make game like "Hexa Puzzle", or there is a tutorial in Scirra website?
Hexa Puzzle link: https://play.google.com/store/apps/details?id=com.bitmango.go.blockhexapuzzle&hl=en
Develop games in your browser. Powerful, performant & highly capable.
I also like this game, but I do not know how your mechanics work ...
I would like to learn a little about it.
Although the cells are hexagons, both the empty grid and coloured pieces can be encoded with 2D arrays. Then it's just a matter of comparing two arrays to check if a piece can fit into the grid. Not much different from tetris or other similar games.
Thank you for your reply.
This is my file: https://www.dropbox.com/s/xqiv27cudx3452f/How%20do%20I%20make%20game%20like%20Hexa%20Puzzle.capx?dl=0
I can just move one block, but I don't now how to move two or three block in the same to make a different shape of blocks.
Also I don't know how to use array.
You can pin several blocks to some invisible sprite (block base). And then drag&drop that base sprite.
But this is the easiest part. The hard part would be checking if the blocks can fit into the grid.
And for this you should learn how arrays work.
On the second thought, this game can probably be made without the arrays, by using "Is overlapping" events.
As you drag and then drop colored blocks onto the grid, you need to test if each block is overlapping a cell and if that cell is empty (not occupied by another block).
Thank you very much. I will start learning arrays, it's better like you said.