- Joined
- Oct 22, 2008
- Messages
- 53
- Reaction score
- 0
Well, I'm trying to make this code -15 from d each time like b is used.
I have:
but it only -15's once...
And since I'm using a timer, it does
d (waits five seconds) d-15
I need to make it so it does:
d (waits five seconds) d-15 (waits five seconds) d-15-15
etc over and over :s
Thanks in advance.
I have:
Code:
if (updatestate == 2) {
FileInputStream in = new FileInputStream("image/Prologue/Story.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String[] Story;
Story = new String[72];
int[] Storyspot;
Storyspot = new int[17];
int a = Storyspot.length * 15 - 15 + proY+33;
//int a = proY+33;
int[] place;
place = new int[17];
for (int j = 0; j <= Story.length; j++){
for (int b = 0; b <= Story.length; b++) {
int c = b * 15;
int d = a+c;
place[b] = d-15;
Story[j] = br.readLine();
System.out.println(Story[j]);
Font font = new Font("Verdana", Font.PLAIN, 12);
g.setFont(font);
g.drawString(Story[j], proX+10, place[b]);
}
}
}
And since I'm using a timer, it does
d (waits five seconds) d-15
I need to make it so it does:
d (waits five seconds) d-15 (waits five seconds) d-15-15
etc over and over :s
Thanks in advance.