2D Toolkit Forum

2D Toolkit => Support => Topic started by: drkucho on December 30, 2014, 12:06:14 pm

Title: Who is calling SpriteAttachPoints?
Post by: drkucho on December 30, 2014, 12:06:14 pm
i have issues with attach points  not being updated properly in the current frame, seems that they get updated not in the same frame the sprite changed, this must be because i had to hack tk2d animation triggers code some time ago because this same reason, the trigger events were executed in the next frame

tk2dSpriteAttachPoints.cs has no Update function so who is calling this script to update the attach points? i can't find the call in tk2dSprite or tk2dSpriteAnimator .. :o

thanks
Title: Re: Who is calling SpriteAttachPoints?
Post by: unikronsoftware on January 03, 2015, 01:38:05 pm
Its called from the SpriteChanged event from tk2dSprite. It is called at the point the sprite is changed.