ok, so im making a program that you can do ascii animations with. So i have to play the movie frame by frame. So i want my code to play one frame, Sleep 1 sec,play frame 2, sleep 2 sec etc. What it does instead is waits 10 secs, then plays frame 9. Anyone know what im doing wrong?
for(location=0;location<10;location++) { movie.setText(frames[location]); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } }