How can I restart an animation sequence at any time with the same key I used to start the animation sequence?
http://i.imgur.com/1Z2sXDX.gif?1
How can I restart an animation sequence at any time with the same key I used to start the animation sequence?
http://i.imgur.com/1Z2sXDX.gif?1
On key pressed > change animation sequence & change animation frame to 1?
+On key press
- Change animation to "blah"
- Change animation frame to 0
- Restore animation frame
Thanks! I forgot to force the animation frame to first frame.
I have another issue but I think it's a Windows related problem?
If I press a key several times(3 times is enough in most cases), the animation gets stuck and when I press the key again I can't do any action.
Make sure you are using the user created animations, NOT the premade ones. Sometimes the premade animations have additional functions you might not be aware of. Also, are you using any built-in movements?
I now used the basic code in a new mfa file and after some key presses no more actions are possible.
Sometimes both objects get stuck at the same time and sometimes one object first and after some more keypresses it's happening for the other object too.
I don't think I had these issues before I refreshed my Windows 8.1 Pro, so it could be a conflict with Windows settings and Fusion?
Attachment 20017
I'm constantly pressing D key here:
http://i.imgur.com/d5zb9FE.gif?1
+On key press D
- Change animation to "New Animation"
- Force animation frame to 0
- Restore animation frame
Not sure what you are expecting to happen. I adjusted how your frames look (removed the walk anim frame from the dig anim) and made all anims the same playback rate. But the file does what I expect. Are you thinking you can press D so fast that you will maintain the first frame of the animation as the only thing you see? I don't know if keyboard input can be registered that fast, tbh.
Attaching my update.
I don't understand. In your example I press the button very fast and it doesn't freeze. Why?
Like the others it works fine for me, though I used to find with animation freezes on custom animations it could help to add a 'on animation finish restore animation sequence' event.
I think the "freezing" you saw was the "Stopped" animation frame you had as frame 0 of the Digging animation. Every time you pressed the D key, you were displaying that one frame so it might have appeared as though the Stopped animation was playing. I removed that frame in my example.
Also, you need to be aware that Fusion will always return to the Stopped animation if it finishes a non-looping, user-created animation. Or at least it should. I have found if you interrupt this natural return to Stopped, you can get stuck on a frame. To get around this, I ALWAYS make my "play one time" animations loop back on their last frame and manually write code that looks for the animation to have reached a specific frame. Then I manually set the animation to Stopped (or whatever your idle animation is). I did this in my example as well.