Hi PhoenixNightly, thanks for the answer.
yes and how i can see if all of the puzzle that are on that frame = 1 have a variable in x state.
in code wold be like this
var pieces_with_angle_zero = 0;
for( puzzle_piece in Puzzle) {
if(puzzle_piece.angle == 0){
pieces_with_angle_zero++;
}
}
if(pieces_with_angle_zero == Puzzle.lenght){
// you have complete the game
}
thanks