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

danpost's Comments

Back to danpost's profile

@ndrwdslv, thank you. You might want to check out my Bar Sub-classes scenario which demonstrates different ways to give it functionality. It is at the following URL: http://www.greenfoot.org/scenarios/5677
@JetLennit, just download the project and open in Greenfoot. Then open the 'Bar' class code in 'Documentation' view.
@RadikulRAM, the code is open source (you can download this scenario and look at the code yourself within the Greenfoot application. Just click on the big green 'Open in Greenfoot' button on the right above the scenario window frame.
@JetLennit, read my last comment for this scenario. :<(
That is something you should avoid doing -- 'Sorry, GAME OVER!'.
@adamkjelstroem, To see code for 'grow on eat', see my Snake Tracks Demo at http://www.greenfoot.org/scenarios/6747
The in-ability for Greenfoot to detect the "tab" key is either a BlueJ or Java issue; not a Greenfoot issue.
What FlyingRabidUnicornPig is saying is that while editing the text in the TextBox object, if the user presses the 'Del' key, it appears to add a space.
@al_griff, the previous post has the code to do what I believe you wanted to do. The last line should probably read 'super.act()' (in case you add an act to your world -- if you do, make sure you call 'super.act()' in it also or the scrolling will not work).