Search:

Type: Posts; User: cs218087

Search: Search took 0.17 seconds.

  1. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    The problem is: It goes slow at first then starts to go hyperspeed. Thats it. I dont know how else to say it.
  2. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    I tried substituting, it doesn't matter. I don't know what you're talking about. I need a fix.... Sorry if I'm being hard to deal with.
  3. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    I don't have it doing that directly, I have it so every 10 times ObstacleX reaches 600, Level goes up, which is in the F3 menu.

    --- Update ---

    26
    25
    24
    23
    22
    21
  4. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    http://pastebin.com/7sTfXa0Y
    That's my entire class code, nothing that regards to it is outside of that class. Disregard everything that doesn't involve the obstacle please!
  5. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    That is the code. That is the only code that manipulates the position.
  6. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    Like I said, they showed the levels going faster and faster until it went static.
  7. Replies
    18
    Views
    968

    Re: Rectangle keeps getting faster

    Um, I am very new lol. I have added a Levels thing in my f3 menu, where every 10 times a rectangle passes, it goes up. That number is slow at first (How I want it) and then it gets faster and stays...
  8. Replies
    18
    Views
    968

    Rectangle keeps getting faster

    obstacleX = (int) (obstacleX - 0.1);
    if(obstacleX <= 0){
    obstacleX = 600;
    }
    repaint();

    Thats my code, and the rectangle (ObstacleX is the X cordinate for the rectangle) goes fine...
Results 1 to 8 of 8