Search:

Type: Posts; User: chri

Page 1 of 2 1 2

Search: Search took 0.25 seconds.

  1. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    I didn't make it cause as far as I know posting a link to another website (rival, i think) on a forum is considered as spam...
  2. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    uhm...yes, but I don't think it's cross posting..I mean it's a different forum I was registered on...I couldn't find my answer here so I tried there..is it a crime?
  3. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    someone told me to "enable hardware acceleration" to solve this problem...does anyone have any clue on how to do that?
  4. Thread: Help wi this

    by chri
    Replies
    4
    Views
    224

    Re: Help wi this

    no one is going to do your homework for you, try, then post the code and tell us where are you stuck
  5. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    sure, the background is just a yellow rectangle
    http://i48.tinypic.com/mto5kg.png

    and here's the ball
    http://i49.tinypic.com/16c27a8.png

    I tried on my father's computer, an old toshiba...
  6. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    ok thank you anyway, I'll try on other computers...
  7. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    oh dear...should I try to reinstall java or something?
  8. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    but what for the frame rate? The entire thing won't work at 15 fps cause the ball won't detect the edge of the screen correctly, do you have any clue of what is lagging the animation on my computer?
  9. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    should I add
    long cumTime = System.currentTimeMillis()+1;
    after the start of movieloop?
    this screw up the entire time thing
  10. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    maybe the velocity is too high and if you have a smaller screen than the mine it get immediately off the screen...
  11. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    for me it works...maybe it's cause of the background that is 2560*1440 (my screen's resolution) but the question is why I get this bad frame rate!

    edit: how did you get the images?
  12. Replies
    3
    Views
    208

    Re: reading problem !!

    what is this code supposed to do? I suggest you to post the whole code with some more specific question...
  13. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    yeah I changed some physics parameter and that screwed the calculation of when the ball should stop, which wasn't already precise, to make it move to the right change the parameters in setPhysics for...
  14. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    main

    import java.awt.DisplayMode;
    import java.awt.Graphics2D;


    public class mainclass {

    long startingTime = System.currentTimeMillis();
    long cumTime = startingTime;
  15. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    O_O does that mean that the problem isn't my code but my computer or something? I play 3d games finely on my computer I don't think an animation like this could create so many problems xD
  16. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    Fr rate FPS
    449 2
    118 8
    79 12
    65 15
    68 14
    65 15
    66 15
    61 16
    67 14
  17. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    ok I tried what you said, now I have no objects in the screen class, I load the images only in the Physics class and then I get them through a method but I still have 3 objects in mainclass and I...
  18. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    I removed the call of mainclass() from screen cause it was useless, I have no clue of why I created it :D, but I don't get it, if I need a method from mainclass how can I not create a new object of...
  19. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    Re: lagging animation

    sorry, is it better now?


    I don't understand o_O could you explain it better please?

    I removed them
  20. Thread: Progress Bar

    by chri
    Replies
    4
    Views
    787

    Re: Progress Bar

    I don't get what you mean, progress bar of what?
    post your code and tell us where are you stack at, only then we will be able to help you
  21. Thread: Progress Bar

    by chri
    Replies
    4
    Views
    787

    Re: Progress Bar

    Java is to Javascript like Ham is to Hamster
    they are two different things, and this is a java forum, I don't think most of us know much about javascript
  22. Thread: simple drawing

    by chri
    Replies
    13
    Views
    262

    [SOLVED] Re: simple drawing

    yes but, I don't know if it's possible, couldn't you at least make that the poster can see his own post, but with some kind of advice that let the poster know that the post is visible only to him...
  23. Thread: lagging animation

    by chri
    Replies
    35
    Views
    643

    lagging animation

    Hi everyone :D

    I have this animation, that consists in a ball moving around the screen following physical parameters as acceleration etc... everything works fine, but I only get a very bad frame...
  24. Thread: simple drawing

    by chri
    Replies
    13
    Views
    262

    [SOLVED] Re: simple drawing

    oh god I feel so stupid, I forgot to write the method getGraphics that is in the screen class -.-
    now I don't get any exception anymore, but the images don't show...I only get a gray screen

    Now...
  25. Thread: simple drawing

    by chri
    Replies
    13
    Views
    262

    [SOLVED] Re: simple drawing

    The only variable involved there is g, a graphics2d object, I don't see how it could be null...
Results 1 to 25 of 33
Page 1 of 2 1 2