A much more efficient version of my previous version: https://scratch.mit.edu/projects/1156428501/ Instead of using the direction of the sprite, I used √2 for the diagonal movement. There's not much to say, it's simply a more efficient version.