2D Toolkit Forum
2D Toolkit => Support => Topic started by: Lestar on March 30, 2013, 10:38:55 am
-
On object it is necessary to define in a point value alfa. To find point co-ordinates not a problem, how to translate co-ordinates sprites in atlas co-ordinates into which it enters? Or it is possible to define value an alpha on most sprites?
P.S. Excuse for my English.
-
You can get the vertices & uvs by looking at
GetCurrentSpriteDef().positions / .uvs
If you need further information on how to set stuff up, look at tk2dClippedSPrite.SetGeometry. The sprite structure is documented in there, for normal sprites (eg. arent diced, and don't have custom geometry)
-
Thanks