Coding - part C

Now we are going to create the button [b]Shuffle[/b] and give it the conditions to shuffle the puzzle pieces.[br][br]1) Drag away the " away piece".[br][br]2) Rearrange the pieces as if playing. Leave the corner that you chose for the "away piece" empty after rearrangement.[br] [br]3) Once the pieces are all in different positions you need to create [u]transition points[/u] A, B, C, ... depending on how many loops you will have in your arrangement. [br][br]4) Sketch the replacement positions of each piece. Example:[br] [br]A ---> P5 ---> P1 ---> A (first loop)[br]B ---> P4 ---> P2 ---> P3 ---> P6 ---> P7 ---> P8 ---> B (second loop)
5) Create the button Shuffle using GGB tools.[br][br]6) Select button and go to settings ---> scripting ---> on click [br][br]7) Type the code accordingly to your puzzle arrangement. Example:
8) Bring the "away" point to the correct position.

Information: Coding - part C