See inside and backpack the "Define" block.
This block uses trigonometry and some lying to make a sprite point in a direction given by x and y coordinates.