Name: Anonymous 2010-12-13 8:48
Hey, /prog/, I could use some help with my java homework.
I'm making a turn based game against a computer and after I make my move, I create a task that shows the computer moving the piece smoothly. All the numbers are right, but it just flat out won't call my paint method when I call repaint so it ends up just pausing for a moment and then instantly moving the piece to where it should end up.
I think this problem has something to do with different threads, but I've never really worked with multithreading before.
Have any ideas? Thanks for any and all help.
I'm making a turn based game against a computer and after I make my move, I create a task that shows the computer moving the piece smoothly. All the numbers are right, but it just flat out won't call my paint method when I call repaint so it ends up just pausing for a moment and then instantly moving the piece to where it should end up.
I think this problem has something to do with different threads, but I've never really worked with multithreading before.
Have any ideas? Thanks for any and all help.