OpenKeeper
OpenKeeper copied to clipboard
Dynamically changed cursor
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?
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!