top of page

Coroutines

Professional info​

This coroutine is used to write a joke to the screen. It grabs the length of the joke and cycles through each char until the full joke is written. This allows it to be displayed letter by letter. So instead of running through the while loop all in one frame, it will wait for the next frame after .06 seconds to execute the next loop.

bottom of page