That works, thanks a bunch.
I also figured an alternate solution that suits my needs well now that I better understand what is going on.
repeatedly_execute_always does run during dialogs, it's one of the few things that does which is why I used that function. I changed it to this:
Code: ags
And, since Skitt has a variety of Views I want to use throughout the conversation based on his current expression, I put the shocked animation in loop 4 of any view of Skitt's that needs to call it and this code returns to loop 0 when the animation has reached the last frame. This way it still treats it as a talking animation so it plays well with the built in speech behavior.
I also figured an alternate solution that suits my needs well now that I better understand what is going on.
repeatedly_execute_always does run during dialogs, it's one of the few things that does which is why I used that function. I changed it to this:
function repeatedly_execute_always()
{
if ((cSkitt.Frame == 8) && (cSkitt.Loop == 4))
{
cSkitt.Loop = 0;
}
}
And, since Skitt has a variety of Views I want to use throughout the conversation based on his current expression, I put the shocked animation in loop 4 of any view of Skitt's that needs to call it and this code returns to loop 0 when the animation has reached the last frame. This way it still treats it as a talking animation so it plays well with the built in speech behavior.