Hi all. As I have said in my previous questions, I'm still new to java. I'm developing a tile based game in java. The movement is on a grid. I'm at the stage where I'm implementing character movement. My plan was, to use the code which I pasted in this question (http://stackoverflow.com/questions/772713/call-repaint-from-another-class-in-java), However this didn't work, and I was told I should use SwingWorker.
Being a problem solver, I've been thinking about this over the day, and had a thought. I could archive the same effect by doing things a bit differently. I mentioned that I had a timer that went off every 20mills at current, calling a repaint. My idea was, I could have a method call before the repaint in the event for the timer, which would move all of the people 1 nearer to their destination (next square/tile). Would that sort of thing work? later on in the game, there may be 100 or so people. Would 20mills be enough time to loop through all the people and move them one bit closer to their destination? is 20mills too short a time? Am I just making no sense at all?
Your opinions / answers / thoughts are welcome :)
Thanks in advance!
Rel