The current depth of the sprite in the range 0-10000, with 0 being the front of the screen and 10000 being the back.
property Depth: Integer;
Anything above 10000 will result in the sprite being clipped from view. By default sprites are at depth 10. If two sprites occupy the same depth then the order they are drawn is undefined unless TAgkApplication.SortSpritesByCreationOrder is set to True, in which case sprites at the same depth will be drawn in the order they were created. For maximum performance it is recommended that every sprite has its own depth value unless the order they are drawn is not important (for example physics sprites that won't normally overlap).
Copyright (c) 2012. All rights reserved.