Try this: make a points value that counts how many pac dots are eaten then maybe for rules: when the pac dot is destroyed take away the number by -1 and then when the number reaches 0 make the maze trigger to flash white and back to blue and while it dose that for about 3seconds make a rule on the maze: when the maze is flashing wait for 3 sec then send player to another level but first count all the pac dots before doing this and when you counted all make a number next to the number that will go down it will help you know how many pac dots were left before the going down number (hope this helps) but I never tried it myself