User Tag List

Results 1 to 5 of 5

Thread: Triggering an animation only while holding a key :D

  1. #1
    No Products Registered

    Join Date
    Sep 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool Triggering an animation only while holding a key :D

    Hihi folks!

    So Halloween is coming up and I'm building an app to use as a Digital Puppet of sorts in my costume. What I'm trying to setup is a looping animation of many different eyeballs looking around randomly, and when I press and hold the spacebar on my bluetooth mini-keyboard the eyes close and stay shut as long as I hold the key, then play the closing animation in reverse as they open and start looking about again.

    I see how to trigger an animation on a key press, and how to switch animations with different keys, I'm just a little new to the interface and am trying to figure out how to set it up as described above ^_^

    Thanks for reading!

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    Sounds like a cool Halloween project

    Different ways to achieve that,

    a simple one:

    setup two different animations,
    stopped: eyelid opening animation + standard behaviour (look around)
    walking: eyelid closing + eyelid closed

    so, for both animations, make them always "loop",
    but instead of looping back to frame 1, loop back to the first frame after the eyelid has opened in stopped animation
    and loop from eyelid closed on walking animation

    then:

    repeat while key pressed
    >> change animation to "walking"

    (negate) repeat while key pressed
    >> change animation to "stopped"

    should do the trick

  3. #3
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    EE's Avatar
    Join Date
    Sep 2009
    Posts
    194
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You could also pop in (negate)animation "walking" is playing on the repeat while key pressed event and (negate)animation "stopped" is playing on the other. That will ensure they only trigger once per state change as opposed to restarting the triggered animation every event cycle.

  4. #4
    No Products Registered

    Join Date
    Sep 2014
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a bunch! This helped immensely ^_^

  5. #5
    Clicker Fusion 2.5

    Join Date
    May 2018
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    I am trying to do something similar, I am trying to follow what you guys are suggesting but it's not working for me. I have to hold down WASD together before the animation will change.
    Please let me know what I am doing wrong?
    Issue.jpg

Similar Threads

  1. Object Not Triggering Animation 100% of the Time
    By tomrslever in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th September 2013, 05:18 PM
  2. Inconsistent triggering of Q&A, take 2
    By Teero in forum File Archive
    Replies: 2
    Last Post: 20th January 2011, 04:24 PM
  3. Animation not playing when holding a mouse button
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 10th March 2009, 05:56 PM
  4. Animation stuck while holding a fire button.
    By Kris in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 14th June 2008, 09:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •