Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

hi im adding an alert when get solved but its firing it every time it changes. where do i put alert when puzzle is complete only? thank you.

(1 edit)

The ThatPuzzle contraption fires a "change" event every time a tile is moved, and exposes a ".solved" attribute that tests whether the current configuration is a correct solution. Thus, you should check the .solved attribute within a "change" event handler on the widget's script, like so:

on change do
 if me.solved
  alert["it's solved!"]
 end
end

thank you that worked great! I posted in the breakout game section too. thanks again.

(1 edit) (+3)

used the puzzle as a way to progress in noir game  THE MALTESE FALCON by RetroGamma