This is tutorial how to create basic projects with game loop. Also this shows why is game loop sometimes better than regular loops.
You have more explanations in next link: https://en.scratch-wiki.info/wiki/Game_Loop This project uses slide engine made by @ggenije https://scratch.mit.edu/projects/429703264/