Examples for Minigames in Visionaire Studio
by Esmeralda 2023

I created two examples for minigames/puzzles, both in a version that uses scripting and one that only uses action parts.

1. puzzle_rotate_pieces let's you rotate the stationary tiles of a 3x3 grid until the winning condition is met
   for the rotation in the non-scripting version I used the custom action part to rotate objects. You can find that in the "plugins" folder and on the wiki

2. puzzle_swap_pieces let's you swap two pieces of a 3x3 grid until the winning condition is met
   In the scripting version I am moving the tiles from one position to the other, in the non-scripting version I display an animation frame of an object animation (each of the tiles has an animation that represents all 9 tiles). I do that with the custom action part to set the animation frame of an object (found in the "plugins" folder - and in the wiki, once I told Einzelkämpfer to add it there.^^) I fake the moving of the tiles by chaning the displayed frame of the object animations. In version "puzzle_swap_pieces_nonscripting0001" I added hightlighting to the clicked tiles.