Help with puzzle game

So, I was working on this game, but there a bug where if you clicked the piece then it won’t say it’s a sprite

2 Likes

I found the original cause of the Play/Settings crash while debugging the mouse system. The old mouse handler was treating every left-click as a puzzle-piece click, which could pass an undefined sprite into Show_puzzle(). There was also an off-by-one issue in the puzzle-piece loop.

I’ve already fixed those issues. The mouse system now needs to distinguish between menu button clicks and puzzle-piece clicks, so clicking Play starts the game, clicking Settings opens the settings screen, and puzzle clicks continue going through the existing puzzle system.

Also your art skills are insane!

2 Likes