Sign Up, Lost Password
You need to login to take part
Hi, i am currently facing an issue in greenfoot. The program gets compiled again and again automatically without stopping. Here is a sample of what i get. How do i get it solved?
By Sudarshan2, with 1 reply.
Replied to by danpost, about 3 hours ago:
<< Link Omitted >>
Most people will not go to an unknown or unfamiliar link. Upload to
or just describe what happens and/or is shown here. Are you sure it is compiling repeatedly? Could it be that it is recreating your world repeatedly or you have an infinitely repeating loop, instead? Post your
subclass codes here for review. You may also need to post the classes of any actors you add to your world during world construction.
hey im trying to get this to do an animation but it just keeps bringing up an error
By whitecrow, with 2 replies.
Last reply by Spock47, about 6 hours ago:
danpost is right: It is always easier to solve a problem if the error message is given. Here, especially the information which line throws the error, is most relevant. From looking at the source code, I guess that in lines 39, 43, 54 and 58 you actually want to use the images defined in the attributes at the beginning. For referencing variables, you just use the name without quotation marks. So, removing the quotation marks in these lines should solve your problem, e.g.: <Code Omitted> Live long and prosper, Spock47
Help im going insane about a Counter
By Monk_08, with 24 replies.
Last reply by Spock47, 1 day ago:
I think you are now in the position for some refactoring. If I understand your scenario correctly, the robot is the "protagonist", the actor the player controls. So, it seems that the robot is the one that "owns" the money. 1. So naturally the moneyCounter should be moved to the Robot class. <Code Omitted>As you can see, the source code to manage the money counter already got simpl
How to initialize a variable
By miguelcosta, with 1 reply.
Replied to by danpost, 2 days ago:
You must declare a variable before you can initialize it. However, you can place the initialization code on the same line as that which declares the variable. Example is shown in your own code at line 15, which declares the
variable as an
and tells java to initialize the field's value to
when created for a
Abstract and super keyword
By Roshan123, with 9 replies.
Last reply by Roshan123, 2 days ago:
If you want to modify what initially appears when you create a class, edit the
files in directory:
Very good! Finally u have learnt it! I m sorry....ignore the above message I m always thankful to u for helping me everytime
By footpickle, with 1 reply.
Replied to by danpost, 4 days ago:
I need an idea for a game, can someone please leave a suggestion?
How about improving on what you already have?
Problems to launch greenfoot after installation
By Karlachan, with 1 reply.
Replied to by RcCookie, 4 days ago:
int variable does not update in another worlds
By miguelcosta, with 4 replies.
Last reply by danpost, 4 days ago:
Change line 37 in
class to: <Code Omitted>and add at line 39 in
ckass: <Code Omitted> If creating the new
class, use: new Oceano(this) or, if in an
subclass with actor in world, use: new Ocean((MyWorld)getWorld())
Help with x and y coordinates
By TimFNA, with 1 reply.
Replied to by danpost, 5 days ago:
You mention bullet hitting a P1 object, but I only see code for hitting a P2 object.
By Tlax, with 3 replies.
Last reply by danpost, 6 days ago:
how do i manage to start balk moving again when i pres the mouse again?
Change line 6 to: <Code Omitted>
How to call a Actor in world
By mik., with 6 replies.
Last reply by danpost, 6 days ago:
If you want to change the images of all actors in your world: <Code Omitted>
By Tlax, with 2 replies.
Last reply by danpost, 8 days ago:
But if i type the y in for all the actors they get a randomnumber, but its the same for all the actors. I would like to have a different y for every actor
Please provide the code in question (the more, the better).
How can a share a variable between world class an actor class
By KasB, with 9 replies.
Last reply by KasB, 8 days ago:
Oke, thanks for your help
By Tlax, with 10 replies.
Last reply by Tlax, 8 days ago:
thank you very much
By Cz.Gamingz, with 1 reply.
Replied to by danpost, 9 days ago:
hi pls help im hiring for the command : how to make a actor to eat anothe actor
There are the