The problem is: It goes slow at first then starts to go hyperspeed. Thats it. I dont know how else to say it.
Type: Posts; User: cs218087
The problem is: It goes slow at first then starts to go hyperspeed. Thats it. I dont know how else to say it.
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.
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
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!
That is the code. That is the only code that manipulates the position.
Like I said, they showed the levels going faster and faster until it went static.
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...
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...