This site requires JavaScript, please enable it in your browser!
Greenfoot back

Nosson1459's Comments

Back to Nosson1459's profile

is this real A. I. or simulated?
Now I see that "Caster.png" isn't in the code but it's the set image of the World done by right-clicking on it and choosing Set Image. It could be everyone else knows this already but I don't since I can't open the scenario. I'm still wondering about "Thumbs.db".
I see that there are 10 likes/votes but none of those ten people have a high score. You don't need to win the game to achieve a high score, You just need to either win or by lose all your lives. A few reasons that you might not have gotten a high score is: 1) You're not logged in 2) You haven't done the things in this discussion "http://www.greenfoot.org/topics/8200/" to make UserInfo work which will mean that you can't achieve or view the high scores 3) You haven't won or lost but you rather stopped in middle
"If I get this right, I can't use this Timer class because the code is not executed once in a while but always when a unit gets a new target." That's not the reason because you can start and stop the timer execution at will. The reason it will or won't help is because it doesn't have anything to do with act cycles (so if all your code is in one act cycle it probably won't help to move it to your own artificial act cycle which is at speed 100%).
Now I see what you mean by lag but I still like the fact that you found a way (path). Why don't you increase the simulation speed and then put a delay on everything else if you have to OR put the path finding code in a javax.swing.Timer by doing: <code>private javax.swing.Timer timer = new javax.swing.Timer(0, new java.awt.event.ActionListener() { @Override public void actionPerformed(java.awt.event.ActionEvent e) { timerActionPerformed(e); } });</code> Then create a timerActionPerformed method: <code>private void timerActionPerformed(java.awt.event.ActionEvent e) { // path finding code }</code> And then you use timer.start() or timer.stop() to start or pause the timer execution. I'm not saying that you don't know how to do this but danpost was wondering where I got this code from so I'm just posting it in case you have any questions on how to do it. If you're wondering WHAT this does is that it basically calls the actionPerformed method automatically every certain amount of time. This amount of time is specified in milliseconds as the first parameter in the Timer constructor (so here it's 0 so it will be executing quite often).
I figured out how to scroll down. For all the other scrolling the edge of the map is the edge of the screen but for scrolling down I have to go to the bottom of the frame which is way off the map. There's lag for scrolling too (I said "too" but I don't know how to direct people to walk).
I can scroll up but not down - annoying. All I know how to do in this scenario is scrolling with the mouse and pressing on Town Centers and villagers. What else is there to do and how do I do it? You talk about shortest routes around obstacles but you don't say how to make anything move or what to make move. You also mentioned that the map is bigger for more teams but all I see in the map is the Town Center no other teams to make bigger maps.
Don't worry you don't have to know the answer I'm just saying that I don't know what I did wrong. If I did something wrong that everybody knows about then anyone can tell me, but otherwise no one else can tell me so then maybe Mememaster001 should (I would think it's the latter).
I know YOU didn't call me that. I'm simply just asking what it seems I did wrong that Mememaster001 called me that.