Hello Guest

Author Topic: hotspots in animation  (Read 4097 times)

igmon

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 7
    • View Profile
hotspots in animation
« on: January 27, 2013, 08:28:29 am »
Hi unikron,

I don't know if it's in your TODO, but adding hotspots in animation would be nice.  Basically something along the lines of having a list of hotspots and setting their location per frame.  I saw that you added the ability for users to extend the animation editor, perhaps it can be done through that? I haven't really looked into it as it is not crucial at the moment.

Thanks!

PS 1.90's animation editor is really awesome so far!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: hotspots in animation
« Reply #1 on: January 27, 2013, 09:36:38 am »
Glad you like the animation editor :)

It isn't in the animation editor right now, but you're right, you could extend the editor to do this. The best place to add arbitrary data like that will be the string field, though it'll mean parsing the data. Or you could add an object field to the tk2dSpriteAnimationFrame and attach arbitrary bits and bobs to it.

Currently you can't add anything to the preview window, and this will be the most appropriate place for something like this. I'll keep this in mind - maybe I could extend the plugin system for the preview window too.