# SetSpriteX

## Description

Immediately positions the specified sprite to the given X world coordinates. The default world coordinate system has 0,0 as the top left corner, and 100,100 as the bottom right hand corner of the screen (this can be changed using SetVirtualResolution).
This command positions the sprite by its top left corner.

## Definition

SetSpriteX ( iSpriteIndex, fX )

void agk::SetSpriteX ( UINT iSpriteIndex, float fX )

## Parameters

- iSpriteIndex - The ID of the sprite to position
- fX - The X coordinate to position the sprite, can use decimal values.