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

danpost's Comments

Back to danpost's profile

Things to fix: * boss-basic : correct relational operators should not have (0 <= x) as a valid answer * greenfoot : move down/remove at edge should use 'getWorld().getHeight()-1' * greenfoot : move left/remove at edge should check '<= 0' * animal : WALKING_SPEED : Question 2 answer should be 'Cannot tell from the given information' as neither the cellsize nor the rotation is given (movement is in cells -- not pixels; and the rotation could cause variance in the actual distance moved with the cellsize causing an exaggeration in this variance); with a cellsize of one, the answer you have would be approximately correct.
@lordhershey, sorry, the first two (gravity and contortion) should be negative values.
@lordhershey, the image came from my Kaleidoscope scenario at http://www.greenfoot.org/scenarios/4780. The settings used were as follows gravity: 1016 contortion: 1210 stretch: 832 fold: 10000 translation: 0 zoom: 46 distance: 40 x: 0 y: 0 background color: white (by way of code change)
@enkaratbu, you can now view the code while running the scenario.
@greenfootuserthegreat, the 'gfar' file is basically a zipped folder. You can unzip it with any standard tool and then view the 'java' files with any text editor.
@greenfootuserthegreat, do you not have greenfoot installed on your system? if so, you should have a 'greenfoot/scenarios' folder. Cut/paste the downloaded 'gfar' file into that scenarios folder. Open your greenfoot application. From the menubar, select 'Scenarios/Open...'. Choose the 'gfar' file. That opens it.
@greenfootuserthegreat, after clicking the 'Open in Greenfoot' button, select the 'Save' option. This will put a copy in your downloads folder. From there you can cut/paste it to your scenarios folder and then open it with the greenfoot application (which will create an unzipped folder of the scenario from which you can get the class codes).
This is not bad. Although, it is not normal to see changes along the horizontal while in mid-air. Drag and acceleration should only be allowed while standing on something (just like jump is only allowed while standing on something).
@greenfootuserthegreat, both this and the other scrolling scenario are open source. You can click on the big green 'Open in Greenfoot' button, with the green foot over the left side of it, to open or download the scenario. It is located just above and to the right of the scenario window.