2D Toolkit Forum
2D Toolkit => Support => Topic started by: LordYabo on July 29, 2013, 10:42:45 pm
-
I have two objects: a player and a door. The player can be differently sized based on player type chosen. I want to know the size difference between the player and the door at run time so I can do some appropriate calulations.
Is this even possible to get access to the current animation's current frame's source size?
My player object and door object have scales of 1,1,1 on an ortho camera so knowing the GO size doesn't help me.
-
sprite.GetBounds gives you the physical bounds of a sprite.
-
Thanks! ;D