User Tag List

Results 1 to 2 of 2

Thread: Controlling animation frames with input from an analog stick/joy pad button? :)

  1. #1
    No Products Registered

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

    Cool Controlling animation frames with input from an analog stick/joy pad button? :)

    A followup to my previous question!

    Now that I'm working on my digital 'mask' for Halloween I'm wondering for future projects how hard it would be to link an animation to an analog input?

    Example: I have an animation of a toothy mouth starting off closed which then opens wide, would it be possible to set it up so that it stays closed when there is no input from the analog control, and opens based on how far the analog stick is pressed or how hard the analog button is held? I'm still really new to all this but I guess what I'm trying to figure out if there is a way to advance animation frames forward and back linked to the value of the joystick/button x/y?

    Thanks again for reading, you guys are awesome ^_~

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just use the Analog Joystick object to get the value of the axis on your joystick is. I don't remember what the value range is, but let's just say it gives you a range from -255 to 255, and you have 10 animation frames. Then you would just have one event that says something like this:

    Always-->
    Set animation frame of "Active" to ((( [value from the joystick axis] / 255.0 ) + 1 ) / 2) * 10

Similar Threads

  1. PC Controller controls? Right analog stick
    By Lukiester in forum Fusion 2.5
    Replies: 9
    Last Post: 16th July 2015, 07:47 AM
  2. OUYA Analog right Stick
    By Droggelbecher in forum Android Export Module 2.5
    Replies: 1
    Last Post: 16th May 2014, 06:07 PM
  3. Right Analog Stick
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th November 2013, 03:55 AM
  4. OUYA Analog stick suport?
    By Mystemo in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 2nd July 2013, 11:56 PM
  5. Xbox Analog stick controls.
    By Reloadedfurday in forum XNA Export Module Version 2.0
    Replies: 8
    Last Post: 18th December 2012, 11:37 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
  •