User Tag List

Results 1 to 5 of 5

Thread: control animated gif with mouse movement?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Nov 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question control animated gif with mouse movement?

    I don't think this is possible but I would like to control (i.e. play) an animated gif with mouse movement within a specific zone on the frame. So perhaps I have a still image jpg (the first frame of the ani gif) and then when the player moves the mouse into the zone, the still image disappears and the ani gif loads. But the mouse moves in a circular motion and the animation starts, then stops when the user stops moving the mouse, and continues when mouse moves again. Doable?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    In theory, yes. You could take an active object and then keep track of whether the mouse is moving or not, and start/stop the active as needed. Depending on what you are trying to do will depend on how complex it would need to be in terms of mouse moving and animation speeds.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Nov 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Chaos View Post
    In theory, yes. You could take an active object and then keep track of whether the mouse is moving or not, and start/stop the active as needed. Depending on what you are trying to do will depend on how complex it would need to be in terms of mouse moving and animation speeds.
    Thanks for your response. I am able to start/stop the animation when the mouse moves into/out of the zone, which is a start. But I am looking for a condition that checks if the mouse if moving or not, and I can't find one. What can I use for that?

    Amd actually it is going to be a mouse controlled object, not the mouse pointer, and I can't find where to test if that object enters a zone.

    Edit: Okay I can solve the second thing by placing an image that is moved to back (behind the ani gif), and when the mouse controlled object overlaps that hidden image, the animation starts (and another condition that is opposite via the negate function to stop animation). I tried that with a trans gif that was completely blank and MFF2 does NOT like such an image and it wouldn't work.

    I'm still trying to figure out a condition that checks if the mouse is moving or not.

    Edit 2: getting there. I can test if the active (mouse controlled) object is 'stopped' - then stop animation.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up

    There isn't an event for it per se - you could use the built in mouse movement and have it check animations for what is being played. I have attached an example of some simple number comparing. Its not a PERFECT solution but it may work for you (if you move the mouse REALLY slowly it kind of bugs out, but you may be able to program in a failsafe to keep it flagged as moving for an extra few ticks.)

    mousemoving.mfa

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mbuddha - If you've set your object to Mouse Controlled you can check the object's speed to detect if it's moving or not, eg:
    Speed of ("Active") = 0 : <Do your stopped action>
    Speed of ("Active") > 0 : < Do your moving action>

    You could even use your object's speed as a variable to control your animation

Similar Threads

  1. Mouse Control and mouse cursor
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 4th December 2016, 10:38 PM
  2. Mouse control to act like keyboard control
    By Evilized79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th July 2011, 06:30 AM
  3. how to control mouse speed for player movement?
    By FUF in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th August 2008, 09:54 PM
  4. Mouse Movement prevents mouse click event?
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd March 2008, 02:52 AM
  5. Mouse click doesnt work when Mouse movement used
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st September 2006, 02:24 PM

Posting Permissions

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