Change the "Direction#" variable to choose how many directions the arrow can point. 4 is the common up/down/left/right 8 is all four directions plus upleft/upright/downleft/downright etc. etc. up to 36 directions, which corresponds to 1 direction every 10 degrees.
Update Oct 25th, 2025 + Fixed the bug where the arrow would flip at exactly 90 or -90 degrees + changed arrow sprite to be clearer + added pen to show all directions possible