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

danpost's Comments

Back to danpost's profile

The problem is you are creating multiple instances of the GreenfootSound class (and probably using 'Greenfoot.playSound(String filename)' to play them. Create only one GreenfootSound object either in the world constructor or when declaring the field that is to hold it: private GreenfootSound sound = new GreenfootSound(filename); Then use: sound.play(); to play the sound.
@Hippo -- yeah, and remove the Textimage class.
@Hippo, you can probably comment out most of the title page text operations and remove anything dealing with 'drawCircText'. Then it would just be a matter of the two control classes -- changing the TexttImage constructors to GreenfootImage constructors.
You need to improve your AI as far as how long it takes to make a move. My version (currently not uploaded on the site) replies instantly with good play.
If you need help with this, you need to start a new discussion thread and indicate what you are having an issue with. A detailed explanation is best, working with one issue at a time.
@Yehuda, do not complain about things that are unimportant. The jar file was included so that you did not have to deal with altering the codes. If you insist on messing with the codes, that is your choice -- deal with it. There is no need or reason to mention here how difficult it is for you to change. It is not productive in any way.
@Yehuda, you do not have to open in greenfoot at all. Just download the GFAR file and extract the inner executable jar file (Transparencies.jar) from it. Then run that jar file directly.
NVM my last comment about scenario comments and updates (was looking at list wrong).
Thanks for the heads up Yehuda. Scenario comments and updates do not seem to be currently listing for scenarios.