# SetSpriteFlip

## Description

Flips the sprite either horizontally or vertically, (or both). This merely modifies the UV coordinates so that the sprite appears flipped, it does not adjust position or angle values. Note that flipping in both horizontal and vertical directions at the same time gives the appearance of rotation by 180 degrees.

## Definition

SetSpriteFlip ( iSpriteIndex, horz, vert )

void agk::SetSpriteFlip ( UINT iSpriteIndex, int horz, int vert )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- horz - 1 to flip to sprite horizontally left to right, 0 to keep the sprite normal.
- vert - 1 to flip to sprite vertically top to bottom, 0 to keep the sprite normal.