script for creating value in the player from an array table, load value from the player data if he have into value associated in the array, and save the data when the player leave
simple Pacman i made on scratch, you can click on the picture and test the game