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

danpost's Comments

Back to danpost's profile

@8BITBOSSGAMES, I am sorry as I see you have done that (at least the first part of it).
@8BITBOSSGAMES, please start a discussion thread on your issue and give a detailed explanation of what you want your bullet(s) to do.
@dadansi, please do not post material totally unrelated to a scenario in the commenting section of that scenario. Also, do not specifically ask for my help, as others may want to give some sort of input.
@Wayne, you can have a 'canMove' method that can check to see if the player can move in the direction it is facing using: return ((Cell)getOneIntersectingObject(Cell.class)).blocked[getRotation()/90] == false; If you have issues with this, start a discussion thread instead of posting here.
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.