Search:

Type: Posts; User: Joe Moer

Search: Search took 0.13 seconds.

  1. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    Sorry to start this up again, but I cant seem to get Kevin's method to work. How do I call your PaintComponent() method? Thats giving me problems. Also, say now my jFrame is from another class called...
  2. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    Thanks Kevin I really appreciate you clearing everything up... I understand what the problem is and thats exactly the answer was looking for in the beginning, but consequently i've learned the other...
  3. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    Well as far as i know when i wrote a simple zombie game in C# with XNA the method I posted above is basically used, as Images are needed, and I realise your answer may be the best solution for the...
  4. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    Heres what i have and its currently working. Although colors are inverted? Could anyone explain why? Have I made the whole area of the jPanel an Image and is that why its doing it? If so how should I...
  5. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    The problem was I named the class BufferedImage for some strange reason. Long day :). I've got it now, but i'm struggling to impliment it, and some other stuff for example:

    BufferedImage temp =...
  6. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    I would ask but i'm much further ahead of the class, they're still doing loops and OOP and combinations of those whereas i've done quite a bit more, so i'd feel like I was undermining my teacher if I...
  7. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    Thank you very much Helloworld922, exactly what I was looking for, :). You know how impossible it is to find an example like that on the internet when your not sure what to look for? :). Also I self...
  8. Replies
    41
    Views
    8,566

    Re: 60FPS refresh loop

    I get much the same problem when trying this, which is a simplified version of earlier..


    while(true) {
    a.Paint();
    a.Update();
    ...
  9. Replies
    41
    Views
    8,566

    60FPS refresh loop

    Hey everyone, I have a problem, I'm trying to make a loop which simply refreshes a jPanel 60 times a second. I've managed to do that, but I think I'm not doing it with the correct methods etc, as the...
Results 1 to 9 of 10