I m going to make a puzzle game where player selecting by pressing left or right arrow puzzle elements and by return key he can put selected puzzle on next place on board. Another puzzle in the next place and again. When he put selected puzzle, it is disappear and on board show this puzzle but in other form.
Here I make graphic example:
I know how to make it with tons of events like - On left arrow pressed and puzzle_id == 1 then... but i there a way to make it more quickly and complex? Thanks for any help!