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

danpost's Comments

Back to danpost's profile

@Entity1037, you press left or right arrow, which ever side the black square is on the bottom line. After selecting correctly, the rows are shifted down, dropping the bottom line. I would suggest a timer to this game with score being based on points per time.
@Peach, actually I have two World subclasses: Hangman and TextFileViewer (to display the text files of the code). The only Actor subclass is the Letter class which I have as an inner class of Hangman and one Object subclass (the Words class). I used the Letter class only for the 26 Letter object that can be clicked on (the ones that turn gray after being chosen). The guessed letter (and the letter that appear in red after a lose) as well as the images used to show the drawing of the one who is being hanged are also Actor objects; but of no particular class (un-named Actor objects). I have a method in the Hangman class that is used to created and return an un-named actor object (getGenericActor).
The Words class does not extend Actor; I did not specify, so it automatically extends Object. The Letter class is included at the end of the Hangman class.
Slight clarification in the documentation.
I forgot to miss the ground and fly.
Brains as big as planets, and we are here playing games in Greenfoot!
@Liamb2179, it is possible to do so; but, the world object must be passed to the constructor (directly or indirectly) like a method argument. What I mean by indirectly, is an Actor object ( 'Actor actor' )that is in the world could be passed instead because it has a reference to the world that can be retrieved with 'actor.getWorld()'.
@Liamb2179, please start a discussion thread on this issue. Supply the code you are using to add the bar into the world as well as code around where the error occurs. Also, copy/paste the error message in its entirety.
Rustic: crude, unrefined, rural Would you rather I used 'citrus' (same letters)? Cellophane -- also known as 'plastic wrap' Right now it is just words.