def set_hflip(self, val):
        """Flip all the images in the animation list horizontally."""
        self.__horizontal_flip = val
        for image in self.images:
            image.h_flip = val
Flip all the images in the animation list horizontally.