AGK for Pascal
TAgkSprite.SetPosition Method (Single, Single)

Immediately positions the sprite to the given X,Y world coordinates.

procedure SetPosition(const X: Single; const Y: Single); overload;
const X: Single 
the X coordinate 
const Y: Single 
the Y coordinate 

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 TAgkApplication.SetVirtualResolution). 

This method always positions the sprite using its top left corner, regardless of the current sprite offset. The top left corner used to position the sprite does not rotate with the sprite, for example as the sprite rotates around its center the imaginary top left corner remains fixed and the sprite's position value does not change.

Copyright (c) 2012. All rights reserved.