OpenKeeper icon indicating copy to clipboard operation
OpenKeeper copied to clipboard

Dynamically changed cursor

Open ArchDemons opened this issue 8 years ago • 1 comments

When cast gold spell, cursor changes and when animation goes to end cursor changes again (on previous cursor). How detect events onAnimationStart and onAnimationEnd? Or they don`t needed?

How realize this effect?

ArchDemons avatar Sep 15 '16 18:09 ArchDemons

Only thing I know for sure is that we know how long the animation runs (number of images + added delay). I don't know any other way than to add the animation length data to our cursors and then just monitor the time and trigger the change to previous/current situation. Feels a bit messy, but I don't know if there is any other way. Other than completely disregard the cursor stuff and just use a floating mesh, but that would probably bring some new issues.

We have already worked hard on this cursor :) Next JME 3.1 release will resolve the disappearing cursor bug!

tonihele avatar Sep 15 '16 19:09 tonihele