1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New mod just "loops" through its animation instead of animating appropriately.

Discussion in 'Help' started by Furries, May 15, 2016.

Tags:
  1. Furries

    Furries Vivacious Visitor

    Joined:
    Apr 28, 2016
    Messages:
    46
    Likes Received:
    17
    Paging @stuntcock !

    This must be a problem in how I'm exporting it, but I'm guessing there's a simple solution.

    I've made changes to Her jaw and edited the animation of her mouth going from all-the-way open to all-the-way closed. Problem is, when I load the swf into the loader, the jaw just repeatedly "loops" through the animation, instead of openning and closing when appropriate.

    What do?
     
  2. Furries

    Furries Vivacious Visitor

    Joined:
    Apr 28, 2016
    Messages:
    46
    Likes Received:
    17
    I figured it out (I think). I went to these lines of code and un-commented them.

    function updateFace() {
    jaw.gotoAndStop(her.head.jaw.currentFrame);

    ulip.gotoAndStop(her.head.face.currentFrame);
    ulip.shape.gotoAndStop(her.head.face.lipOutline.currentFrame);

    ulipstick.gotoAndStop(her.head.face.currentFrame);
    ulipstick.shape.gotoAndStop(her.head.face.lipOutline.currentFrame);

    llipstick.gotoAndStop(her.head.face.lipOutline.currentFrame);
    }
     
  3. Furries

    Furries Vivacious Visitor

    Joined:
    Apr 28, 2016
    Messages:
    46
    Likes Received:
    17
    NOTE: When I un-commented all of those lines

    function updateFace() {
    jaw.gotoAndStop(her.head.jaw.currentFrame);

    ulip.gotoAndStop(her.head.face.currentFrame);
    ulip.shape.gotoAndStop(her.head.face.lipOutline.currentFrame);

    ulipstick.gotoAndStop(her.head.face.currentFrame);
    ulipstick.shape.gotoAndStop(her.head.face.lipOutline.currentFrame);

    llipstick.gotoAndStop(her.head.face.lipOutline.currentFrame);
    }

    the pleasure counters and other numeric values at the top of the screen froze. I fixed the problem by only un-commenting this:

    function updateFace() {
    jaw.gotoAndStop(her.head.jaw.currentFrame);

    }

    ----------
    -----------

    Final code looks like this

    function updateFace() {
    jaw.gotoAndStop(her.head.jaw.currentFrame);

    // ulip.gotoAndStop(her.head.face.currentFrame);
    // ulip.shape.gotoAndStop(her.head.face.lipOutline.currentFrame);

    // ulipstick.gotoAndStop(her.head.face.currentFrame);
    // ulipstick.shape.gotoAndStop(her.head.face.lipOutline.currentFrame);

    // llipstick.gotoAndStop(her.head.face.lipOutline.currentFrame);
    }
     
  4. Faceless

    Faceless Club Regular Content Creator

    Joined:
    Jun 12, 2011
    Messages:
    1,118
    Likes Received:
    22
    Probably didn't instantiate any of her lip stuff. In the future, use the Flash debug projector for testing.
     
  5. stuntcock

    stuntcock Club Regular Staff Member Moderator

    Joined:
    Jun 5, 2012
    Messages:
    1,519
    Likes Received:
    352
    This effect occured because your code threw an exception. Flash Player normally hides them because they disrupt the user experience. If you're writing code then you'll want to see them so that you can properly understand what went wrong and then deal with it.

    Grab a copy of the Flash Player Projector content debugger, and then use it (instead of the standard Flash Player) when you're working on AS3 coding projects.