Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GyLgames

Pages: [1]
1
Support / Re: get a sprite's dimensions without use it on scene
« on: June 06, 2012, 02:38:22 pm »
thx, I achieved that.

a minor thing from Reference:

int tk2dSpriteCollectionData.GetSpriteIdByName(string name)
Resolves a sprite name and returns a unique id for the sprite.

Returns:
Unique Sprite Id. 0 if sprite isn't found.


I got 0 for my first sprite, 1 for 2nd sprite.
No diff between the 1st sprite id and not found. Maybe -1 would be better result for not found.

2
Support / get a sprite's dimensions without use it on scene
« on: June 06, 2012, 10:45:44 am »
hi, there is solution to get dimensions of a sprite (in world unit), without use it on scene? from script...

Pages: [1]