AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkSprite.SetPositionByOffset Method (TAgkPoint)

Immediately positions the sprite to the given point world coordinates.

Syntax
Pascal
procedure SetPositionByOffset(const P: TAgkPoint); overload;
Parameters 
Description 
const P: TAgkPoint 
the point 

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 current offset (see SetOffset). For example if the current offset is the center of the sprite this command will place the center of the sprite at the given coordinates.

Copyright (c) 2012. All rights reserved.