You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not even quite sure what the controller is used for, I did find that someone else used the isPaused prop to run the animation and pause it, I can do that, but it is not the functinality I want, I was hoping the controller could help me with the functionality I want.
What I want to happen is have a second animation run when I hover(click anywhere for now instead) over the canvas element, ie a different animation than the first one. Here is my attempted code so far the controller does nothing for me anyways so need help understanding it.
I've updated my code a bit but now nothing runs it just loads the final state of one of the animations
class wispyController extends FlareComponent.Controller
{
constructor()
{
super();
this._Animate = null;
}
initialize(artboard)
{
this._Animate = artboard.getAnimation("WispyHover"); // This is my second animation
this._Animate1 = artboard.getAnimation("Wispy Appear"); // This is my second animation
}
advance(artboard, elapsed)
{
const { _Animate: animate, _Animate1: animate1 } = this;
animate.apply(animate.duration, artboard, 1.0); // I want this one to run on hover
animate1.apply(animate1.duration, artboard, 1.0);
// keep rendering
return true;
}
}
I am not even quite sure what the controller is used for, I did find that someone else used the isPaused prop to run the animation and pause it, I can do that, but it is not the functinality I want, I was hoping the controller could help me with the functionality I want.
What I want to happen is have a second animation run when I hover(click anywhere for now instead) over the canvas element, ie a different animation than the first one. Here is my attempted code so far the controller does nothing for me anyways so need help understanding it.
The text was updated successfully, but these errors were encountered: