In Yarn Spinner, you can send instructions to your game through commands. Commands look like this:
<<wait 2>>