Hello Guest

Author Topic: Who is calling SpriteAttachPoints?  (Read 3013 times)

drkucho

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 72
  • Retro Arcade Freak
    • View Profile
    • Dr. Kucho!
Who is calling SpriteAttachPoints?
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Who is calling SpriteAttachPoints?
« Reply #1 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.