An animation problem!

Hi!
I've been working on a game and I have made an intro for it out of two animated gif files. The problem I am having is running these two files one after another at the start of my program. I can get them to both run at the same time, or one of them to run..but after it runs the second one doesn't come out....like i can't do anythin after i run one of the gif images...any advice would be of great help to me! Thank you!
Rev

code?

Similar Messages

  • Flash as2 game animation, problem.

    hello i am making a flash animation game but i have a problem, i have my guy running and everything its all gifs, so when he stops its a gif its not one picture its 4 of em (gif) which i made them all compressed into a gif and added to my library then added that to my flash made it work blah blah blah-
    well my problem is when my guy runs left he turn right after i let go of the key i no whats it is doing it using my 1 animation i have in their for standing  i to add my other animation which he standing left basically he runs left after i press left then i let go he turns right, i need to know how to make it so either when i let go of the (LEFT) key it uses my animation ('still2') which is him facing left which i need i have him running right and he stays right after so thats good, or if u know if theres a way i can make the code say like after i let go of like left it uses gotoAndStop('still2') then for running right it uses gotoAndStop('still') so he dosent turn around after i let go of left! well i hope u can find out, and its all animated, so dont just make it so it dosent stop using the animation of left or right, cause then hes running in place for enternity thanks heres my code.
          var rollSpeed = Number=14;
         ichigo_mc.onEnterFrame = function() {
          if (Key.isDown(Key.RIGHT)) {
           this._x += rollSpeed;
           this.gotoAndStop("right");
          } else if (Key.isDown(Key.LEFT)) {
           this._x -= rollSpeed;
           this.gotoAndStop("left");
          } else {
           this.gotoAndStop("still");

    no its actually not a school project just i want to know how to make a game, and i dont know really anything about flash, but i have in my picture of my guy another layer so theres each indivudual layer like i have in my pic of my guy the still still2 running animation 1 n 2 and both my attack things, if you would to see my project so far ask me and i send the file and it should show my guy and his animations...
    heres my code so far.. idk y but i like putting at the end
       var rollSpeed = Number=14;
         var facingRight = true;
         ichigo_mc.onEnterFrame = function() {
          if (Key.isDown(Key.RIGHT)) {
           this._x += rollSpeed;
           this.gotoAndStop("right");
           facingRight = true;
          } else if (Key.isDown(Key.LEFT)) {
           this._x -= rollSpeed;
           this.gotoAndStop("left");
           facingRight = false;
       } else if (Key.isDown(Key.SPACE)) {
        this.gotoAndStop("atack2");
          } else {
           if (facingRight) {
             this.gotoAndStop("still");
           } else {
             this.gotoAndStop("still2");

  • Photoshop Elements 4 Animation Problem

    Hey everyone.
    Sorry for posting this in the iMac forum, but there really was no other forum for my problem. I am using Photoshop Elements 4, and whenever I try to save an animated gif, I cannot edit the frame delay or loop options, they will not respond to anything, but EVERYTHING else will. I have tried uninstalling and reinstalling it, and repairing permissions, and everthing else I can think of. Please help!
    Thanks
    Max

    Hmm... Well, this *****. It's wierd, I got it to animate succcessfully once, but only once, then I couldn't again. Just one more reason to wait for and buy 5 Universal when it comes out I suppose. Thanks for your help.
    Max
    EDIT: Hmm.. I didn't realize this forum had such a strict profanity filter. That wasn't a bad word...

  • Adobe Premiere Elements 8 Gif Animated Problem

    Hey guys , Im currently having problems with my Adobe premiere
    Im trying to import an image thats a .gif but it wont let me sais File not supported
    So I tried importing another .gif image and it worked
    Basically , im trying to import a .gif image and it wont let while letting me import other .gif images except for the one I want
    Thank you

    As I said
    I have another .gif animated image that works with Premiere
    So yeah , .Gifs work
    And I can import that , but I cant import the one I want
    And the problem is my Animated project has 93 frames

  • Video Animation problem

    Hello,
    I have come across a problem where if I have applied an effect to a video clip such as Gaussain and make an adjust to the timing of the effect under Video Animation option, it wont save that particular adjustment and wont render it.
    Any help would be appreciated.
    Regards
    David

    It's the slider on picture below... It will work for some of the effects, however sometimes it doesn't - it wont render, meaning the effect will render, but it wont recognise the slider setting eg. the effect will be fully on. The thing is it's not doing it all the time, only sometimes. It might be the specific effect, or perhaps having multiple effectss etc. Not sure, but I have played around with it a lot and can not figure out what is going on.
    David

  • UIView Animation Problem with different Controllers

    Hello!
    I have a problem regarding the UIView animation and therefore, I have three questions:
    1. is it possible to flip from view old to view new whereby each of the views have their own controller?
    2. Can I only flip views sharing the same controller?
    3. Maybe someone could help me with the following issue: I have two views, and each of the views have their own controller.. the code snippet illustrates my approach.. When i start my code, the new view is added on top of the old view, and the flipping animation is animating the old view only behind the new view.. Sure, this is not what i want to have.
    MapPrototypeAppDelegate *app = (MapPrototypeAppDelegate *)[[UIApplication sharedApplication] delegate];
    ReadGroupsViewController *aReadGroupsViewController = app.readGroupsTableViewController;
    UIWindow *window = app.window;
    [UIView beginAnimations:nil context:nil];
    [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:[self.mapView superview] cache:YES];
    [UIView setAnimationDuration:1.3];
    [UIView setAnimationDelegate:self];
    [window addSubview:[aReadGroupsViewController view]];
    [UIView commitAnimations];
    thanks..

    sommeralex wrote:
    1. is it possible to flip from view old to view new whereby each of the views have their own controller?
    Yes.
    2. Can I only flip views sharing the same controller?
    The flip animation may be used to transition between any "old" and "new" view without regard to whether those views have different controller's, the same controller, or no controller at all.
    3. Maybe someone could help me with the following issue: I have two views, and each of the views have their own controller.. the code snippet illustrates my approach.. When i start my code, the new view is added on top of the old view, and the flipping animation is animating the old view only behind the new view.. Sure, this is not what i want to have.
    MapPrototypeAppDelegate *app = (MapPrototypeAppDelegate *)[[UIApplication sharedApplication] delegate];
    ReadGroupsViewController *aReadGroupsViewController = app.readGroupsTableViewController;
    UIWindow *window = app.window;
    [UIView beginAnimations:nil context:nil];
    // the next line is puzzling. what is 'self.mapView', and what do you expect its superview to be? If 'self' is a
    // view controller, what is the relationship between its 'view' property and its 'mapView' property? Does 'view'
    // also have a superview? Is 'view' above or below 'mapView'? Is there a view between 'mapView' and the window?
    [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRight forView:[self.mapView superview] cache:YES];
    [UIView setAnimationDuration:1.3];
    [UIView setAnimationDelegate:self];
    // apropos the question above, what view is being covered in the next statement?
    [window addSubview:[aReadGroupsViewController view]];
    [UIView commitAnimations];
    I think I need a better understanding of the view hierarchy we have before aReadGroupsVC.view is added. The problem you're having is probably caused by passing the wrong view as arg here: [self.mapView superview]. But I can't say for sure since I don't know how mapView is related to the view hierarchy, and I don't know what it's superview is. It might be easier to just explain your "old" view structure and tell us how you want it to change after the flip transition.
    - Ray

  • Keyboard animation problem.

    Im having various problems after 2.2 update.
    I was posting a message and suddenly the keyboard animation just stopped.
    A minute later i lost internet connection and had to reset the phone.
    Holding the backspace button for 2 seconds results in whole message being deleted letter by letter...
    Is there a fix?
    <Edited by Moderator>

    It was a simple fix, i did not notice the keyboard was in undock mode.

  • Animation problem ( badly needs) ?

    Hello,
    Sorry i 'm posting again and again. because nobody couldn't respond . I badly need this application to be run. Here is what am doing. First applet should start and display '+'( by painting) after keypressed(eg spacebar) then sleep for a while and paint rectangles and next arrow then sleep and etc . this goes on until i keypressed again. Here is that i wrote code , could u please check and modify it. Where i stucked is that KeyPressed code is not working. Please see the code modify it wherever is necessary.
    Thanks in advance,
    - Balaji
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Color;
    import java.awt.Rectangle;
    import java.awt.GradientPaint;
    import java.awt.geom.GeneralPath;
    import java.awt.Polygon;
    //<applet code="ExptA4.class" width=300 height=300></applet>
    public class ExptA4 extends Applet implements Runnable {
         Thread animator;
         Dimension appSize;
         boolean frozen = false;
         int appWidth = 1000, appHeight = 800;
         int delay = 500;
         java.awt.geom.Ellipse2D.Double circle;
         public void init(){
              appSize = new Dimension(appWidth,appHeight);
              this.setSize(appSize);
             addKeyListener(new KeyAdapter(){
                  public void keyPressed(KeyEvent e){
                  ExptA4 exptA4 = (ExptA4) e.getSource();
                  if (e.getKeyCode() == KeyEvent.VK_SPACE)
                       System.out.println("in the keypressed method ");
                  }// end of if      
                  } // end of keyPressed method
         } // end of init
         public void start(){
              if(frozen)
               { // do nothing
              else
                 if(animator == null) {
                           animator = new Thread(this);
                animator.start();  
               } // end of else
               requestFocus(); 
         } // end of start
         public void stop(){
              // stop the animation thread
              animator = null ;
         } // end of stop
         public void run(){
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while(Thread.currentThread() == animator)
                      repaint();
                      try {
                     Thread.sleep(5400);
                       } catch (InterruptedException e) {
                             break;
         } // end of run
         public void paint(Graphics g){
              Graphics2D g2 = (Graphics2D)g;
            Rectangle leftRect,rightRect,plus_horz,plus_vert;
            Polygon downArrow = new Polygon();    
           // drawing the plus               
           int xHPoint = 440,yHPoint = 350, widthP = 30, heightP = 30;
           plus_horz = new Rectangle(xHPoint,yHPoint,widthP,heightP-27);
           plus_vert = new Rectangle(xHPoint+10,yHPoint-10,widthP-17,heightP-10);
           // black interior
            g2.setColor(Color.black);
            g2.fill(plus_horz);
            // black border
            g2.setColor(Color.black);
            g2.draw(plus_horz);
           // black interior
            g2.setColor(Color.black);
            g2.fill(plus_vert);
            // black border
            g2.setColor(Color.black);
            g2.draw(plus_vert);
               try{
                     Thread.sleep(4000);
                 } catch (InterruptedException ie)
           // drawing the Rectangle
                  leftRect = new Rectangle(300,300,100,100);
             rightRect = new Rectangle(500,300,100,100);
             // white interior
            g2.setColor(Color.white);
            g2.fill(leftRect);
            // black border
            g2.setColor(Color.black);
            g2.draw(leftRect);
            // white interior
            g2.setColor(Color.white);
            g2.fill(rightRect);
            // black border
            g2.setColor(Color.black);
            g2.draw(rightRect);
           try{
                     Thread.sleep(4000);
                 } catch (InterruptedException ie)
           // drawing downArrow
            int xPointA = 340,yPointA = 340, widthA = 30, heightA = 30;
             downArrow.addPoint(xPointA,yPointA);
            downArrow.addPoint(xPointA+25,yPointA-25);
            downArrow.addPoint(xPointA+13,yPointA-25);
            downArrow.addPoint(xPointA+13,yPointA-75);
            downArrow.addPoint(xPointA-13,yPointA-75);
            downArrow.addPoint(xPointA-13,yPointA-25);
            downArrow.addPoint(xPointA-25,yPointA-25);
            g2.setColor(Color.white);
            g2.fill(downArrow);
            // black border
            g2.setColor(Color.black);
            g2.draw(downArrow);
           try{
                     Thread.sleep(4000);
                 } catch (InterruptedException ie)
       // drawing circle             
           int xPoint = 340,yPoint = 340, width = 30, height = 30;
           circle = new java.awt.geom.Ellipse2D.Double(xPoint,yPoint,width,height);
            // black interior
            g2.setColor(Color.black);
            g2.fill(circle);
            // black border
            g2.setColor(Color.black);
            g2.draw(circle);
           try{
                     Thread.sleep(4000);
                 } catch (InterruptedException ie)
         } // end of paint method
    }

    hi ,
    here is modified code . I kept all sleep methods in the run method.
    But the problem is i couldn't get any response from the keyboard.
    What i need is that whenever key presses then animation should starts.
    please help me in this regard.i 'm putting my code here, please modify
    it according to my requirements. Once again i badly need this one to be run. i really appreciate if anyone help in this one.
    Thanks,
    -balaji
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Color;
    import java.awt.Rectangle;
    import java.awt.GradientPaint;
    import java.awt.geom.GeneralPath;
    import java.awt.Polygon;
    //<applet code="ExptA5.class" width=300 height=300></applet>
    public class ExptA5 extends Applet implements Runnable,KeyListener {
         Thread animator;
         Dimension appSize;
         boolean frozen = false;
         int appWidth = 1000, appHeight = 800;
         int delay = 500;
      // drawing circle and arrow.
         DrawCircle circle = new DrawCircle();
        DrawArrow downArrow = new DrawArrow();
         public void init(){
            // setting dimension for applet
              appSize = new Dimension(appWidth,appHeight);
              this.setSize(appSize);
              // adding key listener
             addKeyListener(this);
         } // end of init
    // to activate keys
         public void keyPressed(KeyEvent e ){
              System.out.println("in the keypressed method ");
              ExptA5 exptA5 = (ExptA5) e.getSource();
        // when space bar presses then start the thread and animation starts
              if( e.getKeyCode() == KeyEvent.VK_SPACE)
               if ( Thread.currentThread() == animator)
                     exptA5.animator.start();
              } // end of if
         } // end of keyPressed
    // other key methods
         public void keyTyped(KeyEvent e){}
         public void keyReleased(KeyEvent e){}
         // applet starts and animation starts .
         public void start(){
              if(frozen)
               { // do nothing
              else
                 if(animator == null) {
                           animator = new Thread(this);
                animator.start();
               } // end of else
         } // end of start
         public void stop(){
              // stop the animation thread
              animator = null ;
         } // end of stop
         public void run(){
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              while(Thread.currentThread() == animator)
              try {
                 Graphics g = getGraphics();
                   Graphics2D g2 = (Graphics2D)g;          
                  // drawing arrow which is calling from other class
                 downArrow.drawPoly(g2);
                 // sleeps for a while                               
                 Thread.sleep(5400);
                    // drawing circle which is calling from other class
                    circle.drawCircle(g2);
                    // sleeps for a while
                 Thread.sleep(5400);
                 repaint();   
                       } catch (InterruptedException e) {
                             break;
         } // end of run
         public void paint(Graphics g){
         } // end of paint method
    // drawing circle
    public class DrawCircle{
       java.awt.geom.Ellipse2D.Double circle;
       public void drawCircle(Graphics2D g2)
              int xPoint = 340,yPoint = 340, width = 30, height = 30;
          circle = new java.awt.geom.Ellipse2D.Double(xPoint,yPoint,width,height);
          // black interior
          g2.setColor(Color.black);
          g2.fill(circle);
            // black border
          g2.setColor(Color.black);
          g2.draw(circle);
    // drawing Arrow
    public class DrawArrow{
          Polygon downArrow = new Polygon();
       public void drawPoly(Graphics2D g2)
              // drawing downArrow
            int xPointA = 340,yPointA = 340, widthA = 30, heightA = 30;
             downArrow.addPoint(xPointA,yPointA);
            downArrow.addPoint(xPointA+25,yPointA-25);
            downArrow.addPoint(xPointA+13,yPointA-25);
            downArrow.addPoint(xPointA+13,yPointA-75);
            downArrow.addPoint(xPointA-13,yPointA-75);
            downArrow.addPoint(xPointA-13,yPointA-25);
            downArrow.addPoint(xPointA-25,yPointA-25);
            g2.setColor(Color.white);
            g2.fill(downArrow);
            // black border
            g2.setColor(Color.black);
            g2.draw(downArrow);
    }

  • Embedded Text - Animation problem

    Hi All,
    I'm having a strange problem with animated text and embedded fonts. The best way to explain is to show you...
    When I don't embed the font, the problem goes away. It happens in both IE and Firefox and on multiple machines. I've also tried different fonts with the same results. I've also tried recreating the FLA from scratch with no luck. Also, after the page loads, the "streaking" effect goes away if I resize the page.
    I am using CS4/AS3. Any ideas what is going on here?
    Thanks.
    - Adam

    then there wouldn't be any problem.  you must be doing something else.
    to confirm, create a new project that contains just your timeline tweened text.  retest.

  • Edge animation problem

    Hello I have a problem, and cant figure it out on my own. Im working on a retina folio and created a 350x350px Animation in adobe edge, then i opened a 350x350px frame and put in the html file via folia overlay, I selected the option scale to fit and autoplay. then I saved the file and previewed it via Indesign folio preview and everything looked as expected, the animation fit the 350x350px frame and looked crisp. Then I uploaded the file on my Ipad and the animation unfortunately looked really small and was only visible in the upper left part of the frame. Any Ideas what the problem could be, it supposed to look the same as the preview on my mac right? Please help me, thank you

    Hi, yes I ve figured this out. Keep the resolution of your EAnimate files over 144dpi and reduce the document dimensions of your exported file to 50%. Never use scale to fit option. Not gonna work this way.

  • Resizing Animation problem

    Hello.....
    This problem has just started since upgrading to CS5.5
    The problem is with PS 5.1 .
    What happens is, if I make  an animation I usually prepare it at a larger
    size to see it better, (my eyes are not what the once were) When it's ready/finished
    I then resize it smaller to suite my needs...but what's happening now that never happened before
    with any other version of PS or IR... is parts of the graphics jump off stage or to another part of the scene
    I can correct or workaeound it but its a pain. Is it a bug or am I missing a checkbox somewhere?
    Thanks for any help

    This forum is for suite specific issues only. Please post in the Photoshop forum.
    Bob

  • Lion startup animation problem with auto graphic switching

    After start OS X Lion, and after boot screen-  apples, flying/arrive background - animation, when I turned on the graphic card automatic switch(AGS) screen is stuned/freeze.. ... when I turn off this feature(AGS) if goes smoothly...
    i have macbook pro 15" 2011  //clean instal lion from USB(appstrore version)
    anyone have this problem?

    Ale1199 wrote:
    Ok, I've done it, but the situation is still the same, even though the last 3 or 4 times that I have rebooted the audio worked fine, but that could be a casuality.
    Disconnect all external hardware (Walcom tablet for instance) and run through this list and stop after #16 and come back to report and/or proceed to #17 and further if it warrants it.
    Step by Step to fix your Mac
    There is a madness to the order of the steps, it's designed to narrow down your issue from hardware down to something lurking in your user account folder
    So far I read the Walcom tablet is causing some issues, however that might not be the primary cause.

  • Html5 animation problem on iPad

    Hi,
    I made a very simple animation in Adobe Edge of a headline with a PNG file. This one: http://project.aboutdesign.nl/test/lineani1.html
    When I import this in InDesign it works fine in the Folio preview mode (CS5.5 - 7.5.2) except that it also starts to “fade in” from 0% transparancy to 100%. Only when I publish it on on the iPad it only fades in and the animation does not work any more. I also tried it with wallaby but with the same result.
    The html seems to be fine. It works in the browser. Also in Safari on the iPad.
    Thanx in advance!

    I am having this exact problem, I've tried animations made in Edge and exported through Wallaby but the same 'fading in' issue happens. I'm going to try removing CS5.5 and starting again as suggested but am just wondering if you have any idea why it might be happening?  I can't understand how the order things have been installed on the computer can affect playback on the iPad. Is it just a weird glitch?
    Well done for finding a solution anyway (I'll let you know if it works for me).
    Thanks in advance.

  • Mac animation problems

    Hi there! I just got my mac back from repair (hard drive fan and graphics card have been replaced) and I got my mac back and here's the problems i've been experiencing:
    When I open launchpad the system freezes then does the animation in squared / rectangles
    When I click notifications the notifications bar comes out choppy while flashing red
    Opening folders from the dock that have an animation have a choppy animation
    What i've done to trouble shoot:
    Repaired disk / repaired disk permissions
    Tried to reinstall mountain lion through recovery (I got an error that said something like "unable to write installation information to the disk")
    installed OS X Mountain Lion Update v10.8.5 (Combo) (because I thought it had something to do with the structure of the os)
    Done a NVRAM reset but after the second boot the computer got stuck in a grey screen and wouldn't boot
    I have also done a SMC reset
    None of the above have solved this issue
    I hope this is not a hardware issue because I just got the iMac back from an apple store for a faulty hard drive fan and graphics card, here are my specs http://i.gyazo.com/fd300f97236f73f6fdfc9ec3a1d56424.png
    Thanks in advanced!
    - Steve

    Something I've also just noticed my screen saver said quartz composer, when it was set on "flurry" that means anything!

  • INTERACTIVE animations problems

    I have a page with several animations.  The animations seem to work fine at first until I add another animation and I'm wondering if this has something to do with the layers in my document?
    Please let me know if you can help.  I have uploaded the document in question to http://anyonecanservemo.org/AnyoneCanServe/guardianshipA.aspx
    The pages I am having problems with are mainly 3 and 4.
    I can also email you the file.

    Also, on page 17 -- when someone clicks on the BLUE BOX that says "Limited Guardianship," it is supposed to bring up that red check in the box and then display the correct answer.  This is what I've been trying to do on all of these pages.... but as soon as i lay out the "answer choices" (buttons) and the checkbox (object states) and then add the "right answers" (animations - appear or fade in) , it stops working.
    Please advise!

Maybe you are looking for

  • External hard drive for pc and mac

    How can I format my external hard drive to use it with both my pc and mac without deleting everything that's already on it?

  • Canon Pixma MP-540 (and other) does not work with Cups 1.4

    Since Cups 1.4 my printer does not work its 100% about Cups 1.4 beceause after an downgrade to 1.3 it worked perfect. After upgrade to 1.4 again nothing worked. So my question, could there be maybe a package called cups-legacy. I heard about other Ca

  • JBoss Portal integrating with SAP R3 RFC

    Hi Experts,                   I have developed one application by using SAP NetWeaver Webdynpro Java in which i am fetching some values from RFC i developed that application and deployed in SAP Eneterprise portal its working fine.                  No

  • Hirarchies In OBIEE 11G.

    Hi Friends, I am New to OBIEE 11g, I have a doubt about Hierarchies, In this concept how to implement drill-up concept in obiee 11g, where we use this in real time..! Regards.........! Cnu.

  • Best way to use my Verizon iPhone 5 while studying abroad in London

    I was told that I can put the phone in airplane mode, turn wi-fi on (wherever I have it) and there won't be any extra charge on all apps/texting/calling. I was also told that in addition to doing this, I can buy a SIM card in London for calling/texti