quick question. what engine did you use, I'm curious.
You can press 'See Inside' on this project to see the code: https://scratch.mit.edu/projects/708643582/ It's a little changed from the jam version, but it's quite similar. It's very messy, so ask if you need help finding something.