First, you need to have a look at this project to understand. https://scratch.mit.edu/projects/107928987/ Then, just sit back and relax.