How to/What is the best way to do a game speed rate...

I've been trying to do a game for J2ME, but i realized that some actions like moving the sprite around would need to do things like "thread.sleep(etc)" if i want to actually see it moving, i've tried to do directily and nothing happened on screen, or happened so fast that i didn't see. But as far as i went trying to do something to work i couldn't come with a good solution for my problem. I did one that "worked" but i could only get the ship to fire one shot at time that would move on screen, as soon as i shoot again the other sprite would stop moving and became stuck on screen.
So please, anyone know a good sample that can give me a path to follow? I'm sorry i don't have the codes anymore i modified and right now i have a non working code and totally diferent from before.
Thank you.

I don't do J2ME, but the best way I've run across is offscreen rendering and javax.swing.Timer
If there is an equivalent in J2ME I highly recommend it.

Similar Messages

  • What is the best way to record video games on my mac

    what is the best way to record video games on my mac?

    I'm unclear about what you're asking - could you be a little clearer? I know you say that you want to "record video games" but I'm not sure if you're asking if you could, for instance, create a movie of video games as they're being played or what.
    Regards,
    Clinton

  • What is the best way to run/install games onto an external HDD?

    I would like to either install Windows on another partition on my 256GB SSD on the new rMBP and run games off an external, or install Windows on an external and games as well. What would be the most efficient (price wise) way to do this without having to sacrifice speed? I was thinking I could use an external thunderbolt hard drive, but it seems like they are all over $300 and over 1TB. I would only really need around 500GB with preferably 7200RPM speeds. Would USB 3.0 be fast enough or would I need to use thunderbolt? I prefer not to have to install 30GB games on the Windows partition on a small 256GB SSD, though I guess I could uninstall and reinstall them as I need (but does this wear down the SSD write speeds over time?) I couldn't get myself to pay another $600 to get a 512GB SSD logic board on the rMBP.
    Thanks for any help. If there are alternative solutions for running games on an external feel free to recommend them.

    If it is possible to install Windows on an external HDD without Bootcamp, then I'd be fine with that. The only problem I see with that is installing the necessary boot files, but it seems like it could be possible to do it manually. I've never done it before though.
    Running programs off an external should be fine so long as they don't have to access Windows OS files directly (supposing Windows was installed on the internal SSD), no?

  • What is the best way to share a specific folder between macs????

    Hello, I would like to share a specific folder between macs, heres what I need to do:
    1) share one folder that resides in my home folder
    2) the other mac should be able to view it without any login information (no password etc)
    How? What is the best way?

    aapl.up wrote:
    Rick, are you saying that if you try to share a folder outside of home and use sharepoints, then the other mac wont prompt you to log in? Have you tried that? It is hard to believe that is the case
    I am sort of saying that. Have you tried it? I know it's hard to believe, but you really need to help us out by trying some steps that you don't believe.
    We can't see what your exact situation is. We sort of know what's worked for us out here. Just trying to help you get this going in less than 24 hours!
    Sharepoints manages the samba configuration file. It's free software that puts a pretty face on an otherwise cumbersome config file.
    Give it a shot.
    windows will not prompt for passwords, I have tried this with multiple computer at home for both vista and xp
    As I stated. You will not get prompted on windows, if you have set up sharing in an insecure fashion. You are not using a secured sharing situation.
    No argument with your statement.

  • What is the best way to double buffer in this case and how to do it....

    currently I have
    public class Frame1 extends JFrame{
    //inside this class I call up circle class, rectangle class, etc.... to draw
    }I am making a "paint" program, and I have individual classes to handle the paint methods heres an example:
    abstract public class Shape {
        public Shape() {
        public abstract void draw(Graphics g, Color c, int x, int y, int width,int height);
    }and then....
    public class Circle extends Shape{
        public Circle() {
        public void draw(Graphics g, Color c, int oldx, int oldy, int newx, int newy) {
            g.setColor(c);
            g.drawOval(Math.min(oldx, newx), Math.min(oldy, newy), Math.abs(oldx - newx), Math.abs(oldy - newy));
    }There is also a Rectangle class, line class.... etc! So my question to you is the following... what is the best way to implement double buffer in the individual classes? And how to do it?? And also.... the drawings should be kept inside a jPanel.
    Any bit of help is much appreciated Thank you!!

    You don't need to do double-buffering. Swing
    components are double-buffered by default. Just make
    sure you override paintComponent() and not paint().
    And even if you had to, why would there be any
    difference in implementation for your classes whether
    they paint to on- or off-screen graphics?I need to override paintComponent()? what if I don't...
    I am using JBuilder2005 and they automate somethings for me. So thats how they did it when they created the application they did this....
    public class Frame1 extends JFrame{
    /*** all my code here***/
    public class Application1 {
        boolean packFrame = false;
         * Construct and show the application.
        public Application1() {
            Frame1 frame = new Frame1();
            // Validate frames that have preset sizes
            // Pack frames that have useful preferred size info, e.g. from their layout
            if (packFrame) {
                frame.pack();
            } else {
                frame.validate();
            // Center the window
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            Dimension frameSize = frame.getSize();
            if (frameSize.height > screenSize.height) {
                frameSize.height = screenSize.height;
            if (frameSize.width > screenSize.width) {
                frameSize.width = screenSize.width;
            frame.setLocation((screenSize.width - frameSize.width) / 2,
                              (screenSize.height - frameSize.height) / 2);
            frame.setVisible(true);
            try {
                jbInit();
            } catch (Exception ex) {
                ex.printStackTrace();
         * Application entry point.
         * @param args String[]
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    try {
                        UIManager.setLookAndFeel(UIManager.
                                                 getSystemLookAndFeelClassName());
                    } catch (Exception exception) {
                        exception.printStackTrace();
                    new Application1();
        private void jbInit() throws Exception {
    }

  • What's the best way to dry an iPhone that was briefly in water?  Rice? How long?

    iPhone 5 was briefly in water.  I turned it off immediately. What is the best way to dry it?  It's in a bag of rice right now.  If that's good, how long should it be in there before turning it back on?

    If you dropped it into water and it was submersed, even for a few seconds:
    IMMEDIATELY
    Turn it off, remove the sim card.
    Put it in a bowl or box of uncooked rice.
    Leave it there a few days (3 days is optimal).
    Your warranty is voided by exposure to water.  There are two sensors in the iPhone which are white, and turn red or pink when touched by water. 
    Repair coverage? - Check your Service and Support Coverage - https://selfsolve.apple.com/agreementWarrantyDynamic.do.  This will also show the make and model of the device. 

  • Iphone 4s coming friday, what is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across.

    What is the best way to get the notes content from iphone 4 to 4s without doing a restore? i want the new phone to be totally new but not sure how to get notes content across. If I do a restore as I have when previously from one iphone to another it has shown (in settings, usage) the cumulative usage from previous phones so all the hours of calls on all previous iphones will be displayed even though its brand new. Anyone know how I can get my notes (from standard iphone notes app) to my new iphone 4s without restoring from previous iphone 4. Thanks for any help offered.

    First, if you haven't updated to iTunes 10.5, please update now as you will need it for the iPhone 4S and iOS 5.
    Once you're done installing iTunes 10.5, open it. Connect your iPhone to iTunes using the USB cable. Once your iPhone pops up right click on it. For example: an iPhone will appear and it will say "Ryan's iPhone."
    Right click on it and select "Backup" from the dropdown menu. It will start backing up. This should backup your notes.
    Please tell me if you have any problems with backing up.
    Once you backup and get your iPhone 4S, you must follow these steps. If you don't follow these steps, you will not be able to get your notes on your new iPhone 4S.
    Open up iTunes again then right click on your device (iPhone 4S). Once you do you will see a dropdown menu. It will say "Restore from Backup..." Select this and it'll ask for a backup, select it from the dropdown menu. For example "Ryan's iPhone - October 12, 2011." Pick that and it will restore to your backup. Do this when you get your iPhone 4S so you will not lose anything. Even though you're restoring, you're getting back, since you're getting the previous settings, notes, contacts, mail and other settings from your old iPhone. You'll still have Siri though! So, restore when you first get it. Also frequently backup your device, as it will be worth it. You can restore from a backup if something goes wrong or save your data for a future update.
    Once you do that, you should have your notes on your new iPhone 4S and iOS 5.
    Please tell me if you need any help.
    I hoped I answered your questions and solved your problem!

  • I bought CS6 extended yesterday (yes i did). I have CS4 and lots of photo's in bridge (tagged with keywords). What is the best way to get my photos from bridge cs4 to cs6? Is there a guideline how to go about so I don't loose any of my photos/keywords? Wh

    I bought CS6 extended yesterday (yes i did). I have CS4 and lots of photo's in bridge (tagged with keywords). What is the best way to get my photos from bridge cs4 to cs6? Is there a guideline how to go about: so I don't loose any of my photos/keywords? Who can help?

    The Bridge General Discussion can give you the specifics of transferring your information over to Bridge CS6.

  • What is the best way to enlarge a part of a photo in lightroom?  How much cn you enlarge it and get

    what is the best way to enlarge a part of a photo in lightroom?  How much cn you enlarge it and get an acceptable result?

    The way I would do it would be to crop the image so that it only displays what you want, then export that image and specify the dimensions. You will have to experiment with different export sizes to determine what would be acceptable for your situation. You might be more forgiving or more demanding than anyone who would venture to answer that question. That's the nice part about digital photography; you can experiment to your heart's content until you get the result you are looking for.

  • HT5621 My husband and I both have iPhone 5. We currently share the same apple I'd. How do we get separate ones. Him keeping his and me getting a new one? What is the best way to go about doing this?

    My husband and I both have iPhone 5. We currently share the same apple I'd. How do we get separate ones. Him keeping his and me getting a new one? What is the best way to go about doing this?

    FAQ apple id http://support.apple.com/kb/HT5622?viewlocale=en_US

  • What is the best way to back-up my entire library, and How??

    I need to back up my library before somethings happens!!  What is the best way to do that?  Also how do you restore it back on your itunes???

    My 2 cents...
    Fast backup for iTunes library  (Windows)
    Grab SyncToy  2.1, a free tool from MS. This can be used to copy your entire iTunes library (& other important data folders) onto another hard drive or network share. You can then use SyncToy periodically to synchronise or echo your library to the backup. A preview will show which files need to be updated giving you a chance to spot unexpected changes and during the run only the new or updated files will be copied saving lots of time.
    If your media is all organised below the main iTunes folder then you should also be able to open the backup library on any system running the same version of iTunes, regardless of the drive letter or path it appears on.
    Step-by-step install guide
    You restore files simply by copying them back to where they are missing from, or copy back the entire folder in the event of a major disaster.
    tt2

  • How do I import DVD to IMovie? What is the best way to import DVD to a Mac?

    Hi everyone!
    I need some help, so here are my questions.
    How do I import DVD to IMovie? What is the best way to import DVDs to a Mac?
    I would like to keep the original quality from the DVD.
    Thx.

    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.

  • How do you move pictures to an external drive to open space on the Mac hard drive? Or what is the best way to store photos safely?

    How do you move pictures to an external drive to open harddrive space? Or what is the best way to store large photo files? Ive tried copy/cut and paste and it doesnt work. I have nothing on my Mac but photos and its telling me startup disk is too full to download updates.

    Are the photos being stored in iPhoto now?
    How is the external disk formatted?
    Allan

  • How to migrate What is the best way to connectold iMac to new iMac

    What is the best way to connect a 2006 iMac to a 2013 iMac? ( Lion to Mountain Lion )
    I have a TM on the older Mac. I understand using set-up is best. I cannot afford to lose
    Any data.
    Thanks.
    OGT

    By Firewire. However, you will need a Thunderbolt to Firewire adaptor from Apple to use on your new iMac.
    See Target Disk Mode.

  • What is the best way to manage the file space given how much GB the video clips use up?

    I just downloaded a years worth of video off my HD camera.  I took up 125 GB on my hard drive.  What is the best way to manage this content going forward as there will be a lot more video to come in future years with small children!

    rule of thumb:
    SDef ~13GBs/h
    HDef ~30-40GBs/h ...
    latest investment of mine:
    ext.HDD, usb2 (=I have no trouble using usb2 for editing my short projects), 1.5TB=70€  ...
    ... which adds to ~4.2TB for my hobby, incl. back-up drives ...

Maybe you are looking for

  • Ipod no longer working.

    Hello, I've had my ipod touch for about a year, so far (2nd generation I think?) and last night I was listening to music on my ipod through itunes. Suddenly, it stopped playing and my screen was showing the apple icon (when you initially boot up). It

  • ADF Login problem

    Hi, I have implemented ADF Security along with a login bean and a home managed bean according to Frank Nimphius's article in the Oracle Magazine. Problems: 1. In design view the login link is visible, but not in the browser (Firefox vers. 19). 2. Onl

  • Rescue Query name

    Dear all, I need to rescue the names of every Query in my page dynamically. I'd like to use it in every my page to check the Query ExecutionTime. How can I rescue the query name? thanks in advance Best regards

  • Grid control on virtual environments

    We have a fairly small grid control setup, currently all components sit on one physical machine. We are looking to put the latest version of grid control, application+database layers on single virtual machine. I'm aware of Oracles' support policy to

  • 10g DBA OCP requirements

    Dear All, please give me an advice in the following thread: Oracle 10g OCP DBA Hands-on Course ? (People having OCP certification can help for sure.) Thank You! Franky