This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
NVidia driver crash on startup
By erdelf, with 1 reply.
Replied to by erdelf, almost 11 years ago:
*bump*
bullets disappear when hit and enemy
By howdoesonecode, with no replies.
i need the bullets to disappear when it intersects with an enemy
I need some help here
By Epickiller10, with 2 replies.
Last reply by Epickiller10, almost 11 years ago:
let me rework this post/problem stuff a bit later because i have to figure out what is wrong myself, my main problem although is that i am getting syntax errors caused by the vector class
Setting direction to the mouse
By BrownBoii333, with 11 replies.
Last reply by Super_Hippo, almost 11 years ago:
You create the double 'force' in the constructor. This value is lost once the method is left. So it isn't saved after that and can't be found.
Game!
By MrGigglez, with 1 reply.
Replied to by danpost, almost 11 years ago:
Start with the class of the car -- give it the ability of variable speed (use a speed field and a method to increase the speed).
Help Needed! Creating an actor relevant to another actor
By TheGoldenBucket, with 2 replies.
Last reply by TheGoldenBucket, almost 11 years ago:
Sorry about my absence from this discussion, been a bit busy. Anyways, I believe that I have found another discussion that will fulfill my needs. Thank You! -TheGoldenBucket
Counter!
By Pe1per, with 14 replies.
Last reply by Pe1per, almost 11 years ago:
thank you ;)
Painting Starts onto a Background Image
By theDoctor, with 103 replies.
Last reply by danpost, almost 11 years ago:
@richardzombie, please start a new discussion thread for your issue and do not revive old threads. Also, please show your code for what you have tried.
One actor 2 times, Removing one
By sjoerdieman, with 1 reply.
Replied to by danpost, almost 11 years ago:
You can add a reference field to the class to hold the added actor so you can remove it when the conditions are right (I presume at line 35): <Code Omitted>then when creating it: <Code Omitted>and to remove it: <Code Omitted>I am skeptical a
Help Needed With Score Going Up To 15
By Manda_x, with 6 replies.
Last reply by davmac, almost 11 years ago:
Manda_x wrote...
nop, I don't understand.
lines 3-5 of what you posted in the Counter class, do not belong in that class. You need to put those lines at whatever point it is that you want to increase the count - that is, whenever your main actor collects a target. This will probably be in the main actor class.
File reading works in editor, but not after exported.
By EnderPicture, with 6 replies.
Last reply by davmac, almost 11 years ago:
An applet does not normally have permission to read and write files on the local system, so you can't user FileReader as you do above. Also, the file when exported is inside the jar file that makes up your scenario, so it doesn't exist as a separate file. I do have an
example scenario
showing how you can read file contents from files embedded within your scenario, though.
Open the webbrowser
By sjoerdieman, with 2 replies.
Last reply by sjoerdieman, almost 11 years ago:
Thanks got it!
How to zoom in when in source code view?
By classicjimmy, with 1 reply.
Replied to by danpost, almost 11 years ago:
While in the editor, select 'Options>Preferences...' from the menubar; in the 'Editor' tab, change the font size to 14 or so and click the 'Ok' button. From outside the editor, you can get to the 'Preferences' dialog box by 'Ctrl-,' (control-comma).
Solid Objects
By DemonsWhiteSoul, with 4 replies.
Last reply by danpost, almost 11 years ago:
DemonsWhiteSoul wrote...
How would i make it walk back? do i set Rotation ?
How does setting the rotation of the image that actor has change that actors location? There are only two Actor class methods that change the position of an actor. Please review the Actor class documentation (the methods available and what they do, in particular).
Multiple image movement
By Mrinal, with 6 replies.
Last reply by danpost, almost 11 years ago:
If you were to code it in the Ladybug class, you would need a field to distinguish one from the other as far as which direction they will move. An int type field would be easiest in this case. One instance can have a value of '1' while the other has a value of '-1'. Then multiply both value parameters in the 'setLocation' statement by the field.
605
606
607
608
609
610
611
X