Animations on keypress which are interruptible at any time with the same key?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • How can I restart an animation sequence at any time with the same key I used to start the animation sequence?

    Please login to see this picture.

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

  • On key pressed > change animation sequence & change animation frame to 1?

    Custom A* Pathfinding in MMF2: Please login to see this link.
    Random Tile World Generation: Please login to see this link.

  • 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.

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

  • 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?

    Please login to see this link.

  • 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?

    Please login to see this attachment.

    I'm constantly pressing D key here:
    Please login to see this picture.

    +On key press D
    - Change animation to "New Animation"
    - Force animation frame to 0
    - Restore animation frame

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

    Edited 4 times, last by Wodjanoi (May 17, 2016 at 6:53 PM).

  • 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 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.

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!