How do you make your sprite image look left and shoot left or look right and shoot right

Instead of checking the image, it might be easier to store a variable. I usually create a variable called “facingLeft” and set it to be true or false when I change the image from facing left to facing right.