A mystery: Animated GIF not displaying correctly.

I've started adding images to a >1 year old game that I kind of abandoned, which formerly used hard-coded graphics. I'm looking to use a 4 frame long animated GIF of what would appear to be a rotating blade-like enemy. (Not actually a blade, but this is irrelevant.)
The GIF which I am using can be viewed here: ftp://72.141.73.226/ftproot/av.gif
I have taken screenshots of the 4 frames I am receiving, and slowed the result down here: ftp://72.141.73.226/ftproot/broken.gif
I'm not quite sure why it's doing that.. Any ideas?
Also, I've got it programmed so that when the enemies are defeated, they emit a small explosion, which is also an animated GIF. It can be found here: ftp://72.141.73.226/ftproot/boom.gif
The images are drawn by the class AI class, which extends JPanel (For the ImageObserver status). The image displayed is determined when a method called changeImg is called.
public void changeImg (String img) {
    this.img = Toolkit.getDefaultToolkit().getImage(img);
}When the health reaches 0, the 'boom' image (found above) is put onto the object's 'img' variable, which is later called like this:
g.drawImage (img, x-w/2, y, x+w/2, y+h, 0, 0, 20, 20, this);Essentially, it draws the image at certain coordinates depending on the position of the user, and sizes the image depending on the size of the user (variable with difficulty.) and you can see where it is using 'this' as an ImageObserver, because it just so happens to be one. (This is the only way I know to display images.)
There's a small problem, however. When the 'boom' graphic is loaded, it floats around in memory, not being drawn, because it's not being told to, but evidently goign through the animation anyway. This means that all explosions are synchronized, so say I defeat an enemy at frame 0, and then another one at frame 5. The 10 frame explosion is already half-complete, so the second enemy's explosion animation is the latter half of the explosion animation, followed by the inital half. I tried creating the GIF so that it would be set to 'play once', but then after the first enemy exploded, all enemies would display the last frame of the explosion, instead of playing the animation once.
Any help would be greatly appreciated.
(This isn't for homework, don't worry. I finished this assignment over a year ago, and just decided to add to it a bunch.)

@OP:
Are you aware of the fact that your FTP server is wide open?

Similar Messages

  • Why are animated gifs not displaying animations in the preview?

    Why are animated gifs not displaying animations in the preview?
    My coworkers and I are not seeing a animation in the preview pane in Adobe Bridge CS6 even when clicking the play button in the preview window. However, we do see a graphic of the first frame and one person sees 1 frame when clicking play and one other frame and then the animation stops, however, that is not the complete animation.
    I'm using Windows 7 32 bit
    My coworkers are using a mac.
    One coworker has apple OS Mountain Lion with a Intel Quad-Core Xeon – 64 bit system.
    Is this fixable or in the works as a patch? Otherwise we have to open these docs in a browser in order to view them properly.

    I've just come to the realization that some animated gifs do play fine and others do not. A coworker of mine suggests that if it's an animation made via Adobe Photoshop, it'll work in bridge but will not if it's made using something else.

  • GIF not displaying correctly

    Hello! I'm trying to do animation in flash using GIFs I made (with transparency )as motion tweens, but I have an issue.
    The gifs are playing fine, but after a while, after a certain frame, they are not displaying as they should and are instead displaing only certain random locations from these gifs, sometimes even becoming 99% of the area transparent.
    When I go check the bitmaps on flash, they are also not displaying correctly and are indeed displaying the same wronge image that shows up on the preview, but when I preview the GIF I previously made in a browser then it shows perfectly ok.
    Here is the gif I made (Working fine) : CAR-ANIM.gif - Google Drive
    Here is what happens to it in FLash (it already has the background so don't pay atention to that) : Untitled-1.swf - Google Drive
    So why is this happening? why is flash not loading or showing up these gifs correctly? Thanks in advance for the help.

    I don't really know. If I look at your original gif, it has 47 frames and all of the frames look fine. When I import that gif into a Flash movie, I see the extra artifacts in the last 8 or so frames. If I import any other gif into a Flash movie, it looks and runs as expected.
    If I remove the last few bitmaps from the list in the movie's Library, I can remove the problem from the playback. That's a simple solution, but it doesn't explain the source of the problem.

  • Flash Animation: Font Not Displaying Correctly

    Hi all!
    I am having a problem with a Flash animation in Captivate that seems like it should be an easy fix, but I can't seem to figure it out.
    I have a very simple Flash animation that I developed in CS5. It previews in Flash perfectly, play correctly in Flash Player, but when I insert it into Captivate 4 the fonts do not display correctly. Capital letters are missing as well as other letters.
    It's not a matter of AS2 vs. AS3 as I have already tested that. It also is not a frame rate or version issue as I have confirmed they are the same rates and the same version.
    Can anyone shed any light? Anyone else had this same problem? Any guidance or suggestions would be much appreciated.
    Thanks!
    Daniel
    Screen shot:

    Hi dmendoza2,
    Did you embed your fonts into the flash animation?  Make sure all characters necessary are embedded.
    Jim Leichliter

  • Safari - Animated GIF not Animating Issue

    I am frequenting site and have noticed animated gifs not animating properly on this page. The site is http://www.woot.com
    Problem Detail:
    There are two "whirly lights" on each side of a progress bar under the item currently for sale. The left light starts to animate while the page is loading but stops while the right light continues its animation.
    This particular site may usually only uses these images every once in a while so if no one checks this in the next couple days the images will no longer be there. I created a web archive the site which I could send if this page does go away. The issue does not happen in Firefox or Internet Explorer.

    Hi and Welcome to Apple Discussions
    I get the same effect as you in Safari. Loaded with no problem in Firefox. Page does have coding errors, which can lead to inaccuracies in how the page is rendered. Safari is much more strict about correct coding than Firefox, adhering to web standards set out by Web Standards Project.

  • Top Frame not displaying correctly

    Hi on my site index page (oldfortestates.com/index.htm) the
    top bar images/top_trans.gif isnt displaying correctly as it is on
    the other pages. It blue bar should fill out the entire space from
    left to right. I tried getting it back to the orginal way it was
    but didn't succeed. There should be no white background on the left
    or right of it. It should be blue right through the top of the
    page... Any help would be much appreciated.

    That's not the only problem you have. Your navigation is
    subducting the
    Flash element.
    To fix your problem, change this -
    .style18 {font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size:
    11px; font-weight: bold; }
    -->
    </style>
    to this -
    .style18 {font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size:
    11px; font-weight: bold; }
    body { margin:0; padding:0; }
    -->
    </style>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "atomic king" <[email protected]> wrote in
    message
    news:gktakk$esl$[email protected]..
    > Hi on my site index page (oldfortestates.com/index.htm)
    the top bar
    > images/top_trans.gif isnt displaying correctly as it is
    on the other
    > pages. It
    > blue bar should fill out the entire space from left to
    right. I tried
    > getting
    > it back to the orginal way it was but didn't succeed.
    There should be no
    > white
    > background on the left or right of it. It should be blue
    right through the
    > top
    > of the page... Any help would be much appreciated.
    >

  • Uploaded image files not displayed correctly

    Hello everyone,
    I used the following article(on o'reilly) as reference for file upload:
    http://www.onjava.com/pub/a/onjava/2001/04/05/upload.html?page=1
    While it works fine for most files types, there are problems with image files.(I am using PrintStream, BufferedOutputStream,FileOutputStream to write the files on the server).
    When links to these image files are clicked, the uploaded gif and jpeg image files are not displayed correctly.When directly opening the files on the server, it gives a 'error opening file' message.But other word docs , text files do not give an error.
    If anyone else has come across the same problem and could help out , I would appreciate it.
    Thanks in advance.

    I do not want to enter into the logic which you are following to upload the file. I did the upload process successfully even as a blob datatype.
    For this I followed the logic given in http://www.java.isavvix.com/codeexchange/codeexchange-viewdetail.jsp?id=22.
    Here you can download the complete sourse code, which is working fine for gif and jpeg, I tested.
    Please go with this. Also let me know, if you still have problem.
    Regards.

  • Div header tag - not displaying correctly

    I thought I had resolved an issue with a div header tag, but - as per a reply in my 'text as gif' thread, possibly not!
    The header contains three images; a logo, a banner (text), and a picture of a castle.  These should display in a  line.
    When I first set it up, I realised that the castle picture was normally ending up below the other two on smaller screens etc. 
    So I changed the dims for my div container from min 760px/max 1260px, to a set width (960px).  I then rejigged the three images so the widths were within 960px, with some to spare for the spacing (total widths of the three are 900: hspacing another 20 pixels).  There is no padding/borders defined.  Therefore the total should be well within the 960 width (?).
    It looks fine on my PC (widescreen); in 3 browsers, using the restore down menu command (ie to make it not full screen), and by  using the Dreamweaver multiscreen preview (phone, tablet, smaller desktop).  It wasn't ideal (as scrolling required), but at least meant the header (and the rest of the screen) displayed correctly, ie in a horizontal line (and then sidebar - content - sidebar).
    If I set my container width much smaller, most of the screen will be green (the body) in big screens.
    If I rejig the dimensions, it's all a bit hit and miss (and why don't the current dimensions work?).
    Do I need to define the width of the header (as well as the container)?
    Help!  Thank you
    http://hertfordcarnival.org.uk/dev/Index.html

    Hi there, I started off using one big image, but it didn't look right with regards to size and placing (ie I wanted the logo on the left edge, the castle on the right edge, etc). When you say slice, what do you mean?  One image in from fireworks, and then ... ? Thanks again
    Date: Wed, 7 Dec 2011 01:37:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Div header tag - not displaying correctly
        Re: Div header tag - not displaying correctly
        created by osgood_ in Dreamweaver - View the full discussion
    Datafan55 wrote: I thought I had resolved an issue with a div header tag, but - as per a reply in my 'text as gif' thread, possibly not!  Why not just use one big image  then you wont have a problem of with the alignment. Certainly don't use 'vspace' and 'hspace' to position the images. If you want to use 3 seperate images start by setting them us as one complete image then slice it into 3 images. Then use the following css to position the images side by side. #header img If the total sum of the width of the images is the same or does not exceed 960px then the images should be in a nice row side by side. They will actually sit side by side without using 'float' but you'll get a small gap between them which will be added to the sum of the width which will exceed 960px causing the third image to drop onto the next line.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4068499#4068499
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4068499#4068499. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • User Interface Template not displaying correctly

    On some machines the user interface template is not displaying correctly (x is appearing instead of the images that make up the UI template). It does not seem to be a permissions related issue, as the same user can view the UI template on a different machine. It also doesn't seem to be a browser definitions issue as a different user on the same machine can view the UI template. Which leaves me at a loss for ideas...

    Where are your images being used in the UI template stored? I like to place my images in directory:
    <portalMidTier>/apache/apache/htdocs/img
    Then from within the UI template I can relatively reference the images as /img/logo.gif
    Regards,
    Candace

  • Umlauts are not displayed correctly in different programs

    Hello!
    I live in germany, but my locale is set to "en_US.UTF8" because I like to have everything in english.
    I do not have any problems with umlauts on the machine, but when I connect with sFTP oder Samba to it, the umlauts in files are not displayed correctly.
    Look at this example
    The upper word is how it looks in "ssh putty" (=locally on the machine), the bottom one is from "filezilla" (from my windows host)
    This is my locale
    locale
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    When I create a file "asd_aöü" locally on the machine (with the help of ssh - putty), it looks fine, but when I connect by samba or filezilla again the umlauts are not displayed correctly.
    Do you understand my problem? What can I do?
    Thanks!
    Last edited by cyberius (2011-02-19 10:12:19)

    Did you check the locale settings on your Windows machine?

  • Date can not display correctly in excel from .jsp

    Hi,
    I create a .jsp report to export the data to excel. the report run OK, except the date field can not display correctly.
    for example in database :start date ='01-oct-2003'
    in the except it displays to 02/06/02.
    It seem all the date field can not be control in the report, and control by somthing else
    Doese anyone come accross this problem?
    Thanks

    Hi Rong,
    Are you using the following demonstration to build your JSP?
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
    (Output to Excel with Oracle9i Report)
    I tried to do the same, and inserted a database date field in the JSP using Reports. I found the following:
    While making the template inside Excel, if I make sure that the format of the date cells is "Date" - some particular date format, the date field values from Reports does not get exported correctly.
    However, if you make sure that inside the template, the format of the date cells is not date, but "General", then the date field values are correctly exported to Excel.
    Pl try it and let us know.
    Navneet.

  • BPS_WB: Please Wait Dialog Box not Displaying correctly???

    When we switched our Planning Interfaces to using the New Planning Interface Design the Please Wiat Dialog Box does not display correctly. 
    When a Request is fired and the client is waiting for the Response all that shows is a white block in the middle of the screen with no dialog screen or other information. 
    It maybe associated with the following:
    function bpsOpenURLSelf(doIt, url)
          if (doIt) {
            try {
                document.body.style.cursor = "wait"; // works only in IE
            } catch (ex) {} // ignore
            open(url,'_self');
          // note: function with doIt==false is used to check
          //       existence of the opener window
    Or it may be associated with a CSS issue?
    I am currently using IE 6.0.2900.2180.
    Any thoughts would be appreciated!
    Thanks, ATC

    Hi Alan,
    please implement SAP note 845305.
    Regards
    Marc
    SAP NetWeaver RIG

  • Search box not displaying correctly in Safari

    How can the search bar on the Apple site not display correctly in Safari? I find this odd that Apple would allow this. It displays like 2 search boxes overlapping each other. It still functions correctly but it is a little embarrassing since I am always bashing windows pro browser display.

    Hi
    Welcome to Apple Discussions
    Might be a corrupted cache or cookies issue. First, go to Safari Preferences>Security>Show Cookies. Type Apple in the Spotlight panel. Highlight/remove the cookies. Then, go to the Safari Menu>Empty Cache. Try the Apple site.
    If the double search panel still appears, go to the Finder: Your User Account>Library>Caches. There, move to the trash the com.apple.safari file. Restart Safari and try the Apple site again.
    Post back

  • Why is Times New Roman not displaying correctly in Illustrator CS5?

    Alright, so I'm running Windows 7 64-bit and Illustrator CS5.
    Times New Roman Regular does not display correctly on my machine when using Illustrator CS5, but Bold, Italic, Italic Bold display just fine.  Times New Roman does display correctly in every other program I use.  InDesign, Word, etc.  I've attached a screenshot to show what I mean.  Please help!

    Hi,
    I have an absolutely same bug - looks like font substitute
    I had reinstall font family - no changes. Win 8.1 Illustrator CC.

  • Report does not display correctly when exported to adobe

    Post Author: mgisonda
    CA Forum: Crystal Reports
    Hopefully someone can help me. I am currently running Crystal Reports profession version 10. I have applied service pack 1 and recently service pack 6. I am having a problem with the display of a report within adobe. My report is a bit complex. It is a 8.5x11 one page landscape report. It is set up in a grid format with multiple lines and boxes drawn on it. Here is the report information: Report Definition----
    Number of Database Fields:   144     Number of On-Demand Formulas:   40     UFLs in use:   None     Page N of M Used:   No     File Format Schema:   10.2.0    I created the report using CR developer. I use the report within a web project. The user requests the report and it returns to the user, an adobe file of the report. However, this is where I am having trouble. On my local development machine, the report displays fine. In CR developer, the report displays fine. When I export the report to Adobe from the CR Developer, it exports fine. BUT when I run the report from my web site, the adobe file that is returned is broken up over 42 pages. What seems to be actually happening is the return adobe file seems to think that the page size is 2in X 4in.. Where it got that, I don't know.The server running IIS is a windows server 2003. It has adobe 8.0 reader on it. I also have Crystal 10 Server Distribution loaded on it. And I have loaded CR10 Service pack 6 on that as well. Below is the web code that is used to display the report:Imports CrystalDecisions.Shared'Imports CrystalDecisions.CrystalReportsImports CrystalDecisions.CrystalReports.EngineImports CrystalDecisions.CrystalReports.Engine.ReportClassPublic Class PrintInspectionLayout    Inherits System.Web.UI.Page   Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load        Dim mNotInSpringDesign As String        Dim mPartType As String        mNotInSpringDesign = Request.QueryString("NotInSpringDesign")        If mNotInSpringDesign = "TRUE" Then            mStockCode = Request.QueryString("StockCode")            lblNotInSpringDesign.Text = "Stock Code #: " & mStockCode & " does not exist in Spring Design."            lblNotInSpringDesign.Visible = True            Response.Write("<br><br><br><br><br><font color='blue'><center><a href='SpringDesignWildCardSearch.aspx'>Go To Search Page</a></center></font>")        Else            mStockCode = Request.QueryString("StockCode")            Dim pList As ParameterValues = New ParameterValues            Dim paramName, paramValue As String            Dim pV As ParameterDiscreteValue = New ParameterDiscreteValue            Dim Report As ReportDocument= New ReportDocument            Dim expOpts As ExportOptions = New ExportOptions            Dim pdfRtfWordFormatOpts As PdfRtfWordFormatOptions = expOpts.CreatePdfRtfWordFormatOptions            Dim expFormatOpts As ExportFormatOptions = expOpts.ExportFormatOptions            expOpts.ExportFormatType = ExportFormatType.PortableDocFormat            mPartType = Request.QueryString("PartType")            'SELECT THE INSPECTION LAYOUT TYPE TO PRINT            Select Case mPartType                Case Is = "C"                    Report.Load(MapPath("./Reports/CompressionLayout.rpt"))                    'Report.Load(MapPath("./Reports/PCAR.rpt"))                Case Is = "E"                    Report.Load(MapPath("./Reports/ExtensionLayout.rpt"))                Case Is = "T"                    Report.Load(MapPath("./Reports/TorsionLayout.rpt"))                Case Is = "W"                    Report.Load(MapPath("./Reports/WasherLayout.rpt"))                Case Is = "F"                    Report.Load(MapPath("./Reports/FreeFormLayout.rpt"))                Case Else            End Select            pV.Value = mStockCode            pList.Add(pV)            Report.DataDefinition.ParameterFields("StockCode").ApplyCurrentValues(pList)            Response.ClearContent()            Response.ClearHeaders()            Response.ContentType = "Application/pdf"            Report.ExportToHttpResponse(expOpts, Response, False, "")            Report.Close()        End If    End Sub    Any ideas as to the solution? Why is it not displaying correctly? I have spent two days researching every FAQ  to try to find an answer, but to no avail. Please any help would be greatly appreciated. ThanksMike   

    Hi Paul
    You're more likely to get an answer to this if you post in the UNIX forum.
    By the looks of it, you may have a problem with your fonts.

Maybe you are looking for

  • Is there change credit card details- URL link in manage my account missing

    someone on this forum that has more brains than the online chat support do? I have been trying for 4 days to get someone to find out why the change credit card details URL link is missing from my manage account area. I keep getting told the same thin

  • How can I hide a button with javascript in Captivate 8?

    I need to run some javascript in my project and at the same time I want to hide a button, so I can't use advanced actions.

  • Error in Idoc to XML conversion

    Hi, I am doing Idoc to XML conversion using standard program RSEINB00. Can anyone plz tell me what are the pre-requisites to executing this program? I am getting an error message Port XXX segment defn YYYYY in IDoc type ZZZZZ CIM type do not exist. W

  • Views in Project Server 2010

    Hi, I have an issue in Project Server PWA 2010, if i click on any of the views in any page like Project Center or Build Team page the views are not displaying( i mean if i click View button the drop down list not working) I could not see the below pa

  • Phone not turning off

    1st problem..so my phone says its dead when it really has a fully charged battery. and then like a minute later it says its fine without charging it or do anything. what do i do? 2nd problem.. i try to turn my phone off when its about to die or when