How to make graphics move fluidly around screen?

hi,
I'm making a simple space invaders game using JPanel and have so far made the ship and aliens move around the screen (the aliens move automatically, the ship requires key presses).
The ship and aliens are currently simple java 2D shapes and I've used AffineTransform to move them. The problem is the movements aren't fluid. Can someone give me some pointers (possibly some simple code) to make the various objects move fluidly.
Thanks

Don't transform them just move them

Similar Messages

  • How to make a movie of the Screen

    In OS 9 I was able to make a QuickTime of the screen while I was drawing in Photoshop. But that was a long time ago. How does it work in OS X Tiger. My old mac had a microphone. My new G5 imac does not.

    You can still capture a screen in OS X. It saves your captures as .png image files to your Desktop.
    Command-Shift-3 will capture all your see. Command-Shift-4 will turn your mouse into cross-hairs that you drag across any area. And a click on the spacebar (after the above keyboard commands) will turn your cursor into a camera icon that can capture individual windows. Still free.
    Snapz Pro allows you to capture (as QuickTime video) anything in its window. It continues to capture until you close it.
    One of my "movies" made with it:
    http://homepage.mac.com/kkirkster/mycareerfuture/
    Only 1.3MB's and it "plays" full screen.

  • How to make a round border around my picture?

    I am trying to design a logo that would fit into the center of a Frisbie, yet I cannot figure out how to make a round border around the picture. I have tried using the eliptical tool, and have also tried using the cookie cutter. The only option I can get to work with the eliptical tool, is the feather, yet I can't change the pixel number for some reason, so it just makes a thin circle around the picture. I thought I could cut and paste it, but the copy and cut options were grayed out and didn't work. When I used the cookie cutter, it made a nice border, and I pasted the picture into it, but, there are four sections that need to be filled in with the background color and the paintbucket didn't work in those spaces (they are the gray and white checked areas. (the picture ends up looking like a rectangle inside of a circle). So I made a new blank file and filled it in with the color of the picture's background, hoping to use the cookie cutter tool around the picture that was now pasted into the new blank file (I chose another color for the round border) and I used the cookie cutter around the picture, but when it was finished, the whole picture ended up being white. All I want to do is to make a border around a picture (a round border). Nothing I have done has worked though. What am I doing wrong, or what are some other options for trying to do this? Thanks.

    Here is a simple way to add a border. Select the item, add a blank layer, choose the border size and color and the Outside option:
    Here is the result:
    Note that you don't even need to do the Stroke on a blank layer. You can Stroke directly on the picture layer. However having the blank layer preserves the picture in case you want to start again with different Stroke options.
    If this is not what you are looking to do, please clarify.

  • How to make a field in selection screen as READ_ONLY !!

    Hi,
       How to make a field in selection screen as READ_ONLY !!.
    Thanks,
    Senthil

    This is the code you need to have in your program.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-NAME = 'MYSELFLD'.
        SCREEN-INPUT = 0.
        MODIFY-SCREEN.
      ENDIF.
    ENDLOOP.

  • How to make required field on selection screen in Query

    i'm now working with query(SQ01).
    but don't know how to make required field on selection screen in Query.
    thanks in advance

    i'm now working with query(SQ01).
    but don't know how to make required field on selection screen in Query.
    thanks in advance

  • How to make it move correctly?

    I made a simple Flex application. There is a helicopter which
    will move to points that user clicks in the canvas. For example, it
    is at A point. When I click at B point, the helicopter will move to
    B. Then it will move to C when I click at C.
    However, the problem arises when I click at B, C, D
    continuously. It moved from A to B. However, I don't think it moved
    from B to C. Maybe it moved from B' to C.
    Please tell me how to make it move correctly.
    [CODE]
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    import mx.controls.Alert;
    [Embed(source="library.swf", symbol="Helicopter")]
    public var MayBay:Class;
    [Bindable]
    public var xF:Number;
    [Bindable]
    public var xT:Number;
    [Bindable]
    public var yF:Number;
    [Bindable]
    public var yT:Number;
    public function onCanvasClick(event:Event):void
    var x:Number= myCanvas.mouseX;
    var y:Number= myCanvas.mouseY;
    var oX:Number=h1.x;
    var oY:Number=h1.y;
    xF=oX;
    yF=oY;
    xT=x;
    yT=y;
    MoveEffect.play();
    // Alert.show("x="+x+" y="+y+" xOld="+oX+" yOld="+oY);
    ]]>
    </mx:Script>
    <mx:Move id="MoveEffect" target="{h1}" xFrom="{xF}"
    yFrom="{yF}" xTo="{xT}" yTo="{yT}" duration="2000" >
    </mx:Move>
    <mx:states>
    <mx:State id="NewState">
    </mx:State>
    </mx:states>
    <mx:Panel width="70%" height="50%" title="Vi du">
    <mx:Canvas click="onCanvasClick(event)" id="myCanvas"
    width="100%" height="100%" color="White">
    <mx:Image id="h1" source="{MayBay}" width="80"
    height="50">
    </mx:Image>
    </mx:Canvas>
    </mx:Panel>
    </mx:Application>
    [/CODE]

    Make clicking disabled when the helicopter is moving. So
    right after a click, disable clicking.
    There are many coding possibilities for doing so. Make your
    own, then add the code below after it:
    MoveEffect.addEventListener("effectEnd",
    callHandlerFunctionOfSomeSort);
    private function callHandlerFunctionOfSomeSort(e:Event):void
    // In this section, re-enable it using your own method.
    Good luck!

  • How to make your movie from a template in AE CS6?

    Hello,
    Firstly, I'm new to this forum and Adobe After Effects. Hence, please excuse my beginner's language.
    I recently modified a slideshow template in AE CS6. After doing all the necessary modifications in the template project, I do not know how to make a movie out of it.
    I'll appreciate your help in guiding me by providing the necessary information to create the movie.
    Waiting for a reply.
    Thanks

    JMichael wrote:
    Actually, I have to create the movie urgently and send it to a colleague.
    Ouch. That's rather like saying your thesis committee needs your paper tomorrow and, say, while we're at it, can we help you with your research?
    After Effects is huge, unbelievably deep and stupidly complicated.
    It's not that we don't WANT to help you, it's that we cannot execute the rendering commands for you nor can we make all of the rendering and output decisions for you.

  • How to make a movie of a presentation keeping audio and pictures in sync

    How can I synch slides and audio (the audios are different lengths) in a presentation and turn it into a video.
    Each slide should stay in place until the audio has finished (the audio's are slightly different lengths).
    I've tried using a free trial of "Adobe Presenter" but I couldn't seem to make a movie of my presentation.
    I will consider purchasing the software that will do this for me as I have  a few presentations I want to make and convert to movie format for my colleagues to watch (this is to help in a teaching environment).
    Is there a program that will let me match up my audios and slides in the correct order and synch them so the audios do not move beyond the slide for which they are intended? Any help much appreciated with this problem.

    Hi,
    The slide duration in presenter is automatically adjusted according to the time of the audio inserted on that slide.
    How are you inserting audio on slide ? Recording or inserting  using presenter option ?
    You cannot create a movie format like avi, mp4 etc
    But you may publish the presenttaion in the swf format which will play in a browser or a swf player. To play in the broswer you just need to have Adobe Flash Player installed on your system. It will play like a movie in the broswer.
    Let me know if you need some more help
    Thanks,
    Alpi Agarwal
    Adobe Presenter Engineering Team

  • How to make a field in custom screen as display field in screen exit

    Hi ,
    I have created a screen exit for CO02 with a field for item text in header level as input field , when value is given and save button is cliked it gets updated in database but the problem is same field shows as input field in CO03 ( display mode ) .
    Code which i have used .
    in PBO
    if sy-tcode = 'CO03'.
    loop at screen .
    if screen-name cs 'SUBSCREEN' or screen-name cs 'RESB-POTX1'.
    ( subscreen - screen name given in screen editor and   resb-potx1 field name given in screen editor )
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    and even i tried in PAI too .....
    if sy-tcode = 'CO01' or sy-tcode = 'CO02'.
    update resb set POTX1 = RESB-POTX1
    where aufnr = i_aufnr.
    elseif sy-tcode = 'CO03'.
    *oop at screen .
    *f screen-name cs 'SUBSCREEN' or screen-name cs 'RESBD-SORTF'.
    SCREEN-INPUT = '0'.
    modify screen.
    endif.
    endloop.
    endif.
    but itshows as input field only ........how to make that custom field as display field in CO03

    HI Andy,
    Try this out.
    FIrst check the sy-dynnr, if it is same as your custom screen number
    in PBO of your custom screen
    if sy-dynnr = 'YOUR_NUMBER' and sy-tcode = 'CS03'.
    loop at screen
    if screen-name = 'YOUR_SCREEN_NAME'
    screen-input = 0.
    modify screen
    endif
    endloop.
    endif.
    if it wont work they try using Tcode SHD0
    Hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • How to make text stop wrapping around an image?

    Hello:
    I am using RoboHelp HTML 10 on Windows 7, generating PDF and webhelp.
    My project includes some images with text wrapping to the right of the image. I would like to allow a certain amount of the text to appear next to the image, then force the wrapping to stop at a specific sentence. I want the next paragraph to be aligned with the left margin instead of continuing to wrap around the image.
    This is the effect I want:
    I want paragraph A to appear next to the image, and paragaph B to be aligned with the left edge of the topic. It is OK for there to be some white space below paragraph A.
    Is there a way to make this happen?
    Regards,
    Juliette Curtis

    Thanks for the quick reply Peter.
    I was able to create an image style that makes the text wrap to the right of the image. However, I can't work out how to make the text stop wrapping in a specific place. This image shows what is happening:
    I want to allow paragraph A to appear to the right of the image and force B to appear below the image, as shown in the first image. The problem is that I don't know how to make B do what I want. Is there a way to do this?
    Thanks again for your help.
    Regards,
    Juliette

  • Captivate 7: How to make the output fit-to-screen

    Hi Everyone,
    For the long time, I was in search of making the published SWF be able to display the project as fitting to the screen. I was previously using Captivate 5.5. But now, I'm using Captivate 7. Does anyone know how to make the same thing happen to the SWF file? I previously had to make a change in the HTML script. But that same script line does not exist in the HTML file published from Captivate 7.
    Please be aware that I don't know much about HTML scripts. So please be explicit with your assistance.
    Thank you in advance for any assistance that you can provide.

    Hi there
    In Captivate 7, when you publish in SWF format, choose the option titled "Scalable HTML Content".
    Cheers... Rick

  • How to make a movie from an audio file and 1 static image?

    Hi,
    I want to make a movie that it is basically an 8 minutes audio file and I want to have a background picture that is static and stays there during the whole 8 minutes of my audio.
    How can I do that?
    I'm able to add the audio and the picture, however I can't stretch the picture to 8 minutes.
    My iMovie version is 5.0.2
    Thanks,
    Martin

    Hi mcanovas - Simply duplicate the picture as many times as needed. In the Photos pane you can extend the pic to 30 seconds, so duplicate that 16 times and there you go!
    I hope the audience will stay focused

  • How to make safari open in full screen in Mountain Lion

    I can not make safari open in full screen mode since I upgraded to Mountain Lion
    It used to open in full screen mode, now every time I have to make it full screen each time.
    Helps appreciated
    Salih

    gunafly wrote:
    You can achieve this by going into system preferences>general>uncheck "close windows when quitting applications."  The apps will open fullscreen next time, even after a reboot.  One caveat, the window will open in the last session left...
    Hope this helps!
    Thank you, this resolved my question as well.

  • How do you easily move pictures around in a book design?

    When I place an image into a book, I cant move it arround. The image is placed in a centered position, but it crops it incorectly. I dont need to scale it or crop it, just to move it arroun with-in the bounding image box.
    Thanks much

    Double click on the image. Click-hold-drag to move it around. A scale slider also appears below the image.
    This works in both frame modes.

  • How to make home movies sharper on TV screen

    In moving home movies from analog tapes to DVD, I see that the image is much sharper on the computer screen than it is on the TV.  I'm assuming this is because it is blown up so big on the TV.  Is there a way to "share" the movie in iMovie in a way that will confine it on the TV so it doesn't blow it up to full screen?  I want it bigger than the computer, but would like to confine it some for a better image on the TV.  I'm using iMovie 11 and iDVD to create the movies. 
    I have been using the following settings:  Export using Quick Time>Movie to MPEG-4>Video Format: H.264>Data Rate 5000>Image Size:  1280 x 720 HD>Frame Rate 3>Video Options Restrict Profile to Main>Encoding Mode: Best quality (Multi-pass)
    I've also used Export Movie>HD 720p
    While I can't tell much difference between these two settings, they have both created better results than exporting directly to iDVD or Media Browser.
    I'm burning them all to RW disks until I decide what I want.
    Thanks for any suggestions.
    Peg

    elikness wrote:
    ...Standard Definition is what your Videotapes would have been ... at a maximum they would be 640x480 @ 30 frames (really 29.97 frames) and interlaced (meaning you only see 240 of the 480 vertical video lines at one time).
    Elikness, these frame sizes are not correct.
    It doesn't really matter the technical frame sizes, or recording sizes for NTSC or VHS.
    But it's still not good to give advice that is wrong;
    I suggest you have a look at google, or wiki to see what sizes are standard for NTSC.
    640 x 480 is a computer video size, not television.
    But back to the main post....
    Have you considered not using iMovie?
    You don't really need to edit these videos, so any capture program will be fine.
    There are a couple of DV capture programs, like Vidi.
    These may capture the tapes as DV, and should save it interlaced.
    Then you can drag the fiels made (either dv or quicktime) into iDVD and let it convert them.
    Again I suggest you do not save to H.264 before making the DVD; you're essentially converting your videos three times at the moment.
    But if it looks O.K, and it's getting to complicated and annoying then just stick with what you've done, and save the tapes just in case you want to do it again (or someone else can!) another day.

Maybe you are looking for

  • Query in Peopletools (designer)

    I have a query, I have a project with 2 tables include them in fields with the url of pages that I want to show, the purpose of my site included in the project, is to show an area html on the same page when it is a filter of a combo contained in it,

  • Username and password reset

    Can anyone tell me how to reset my username and password from a free 9i version that i have downloaded. do i have to download the database again or what?

  • HCM form deletes future actions

    Hi, We are having issues with a form created to update pay changes to an employee, if the effective date of the record is in the past and there are already future records in both IT0000 and IT0008, the form when it posts, it deletes all future record

  • File system check fails "FATAL"

    Dear all, after about three of years of running, one of my Xsan filesystems died. The fsm process stops running after about 2 minutes in running state. A filesystem check with cvfsck -w -v <Name> ends with: Creating Daten allocation check file. Strip

  • PO Mail trigerring without workflow

    Hi , I have one requirement, while creating Purchaseorder i want the following requirements 1)After creating the PO while saving the information mail should go to the folowingpersons without workflow.       1) who created the PO       2)who is the Pu