go to this project for an example: (when you get there look at the discripation! https://scratch.mit.edu/projects/998793646/
please heart and star if this method works!