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
Using getImage() in World classes
By Phytrix, with 2 replies.
Last reply by Phytrix, about 11 years ago:
I wanted it transparent so that there could be an underflow effect of an actor image (basically just waves, with the background on the World subclass as a still image of water). And what you said made sense. I suppose I didn't think about it not showing from behind... I'll do what you suggested and just use an Actor object and apply the transparency. Thanks for the explanation and the suggestion! :)
Illegal start of expression
By blueberry, with 7 replies.
Last reply by blueberry, about 11 years ago:
Thank you so much Danpost!! I didn't realize that the solution was as simple as delete it! When it is time to do the addition of parameter, I will figure it out then. Thanks again!!
Making ground like a wall
By FlyingRabidUnicornPig, with 6 replies.
Last reply by FlyingRabidUnicornPig, about 11 years ago:
Yay, that works! I have a few small problems, but I can fix those easily. Thanks for the help!
Spawning an Actor from a string?
By Electrk, with 7 replies.
Last reply by danpost, about 11 years ago:
It is already being cast to an Actor type: <Code Omitted>
Self Touching
By JetLennit, with 7 replies.
Last reply by JetLennit, about 11 years ago:
It has worked brilliantly
Is it possible to have an object delete itself?
By BubbaB, with 2 replies.
Last reply by BubbaB, about 11 years ago:
Ah! That makes total sense! Thank you!
method addObject(greenfoot.Actor,int,int) cannot be referenced from a static context.
By BubbaB, with 2 replies.
Last reply by BubbaB, about 11 years ago:
Alright thank you it worked!
Rock, Paper, Scissor, Lizard, Spock
By LearningProgramming, with 24 replies.
Last reply by danpost, about 11 years ago:
I am not sure what limitations are imposed by eclipse, but if you need a class code for choices -- maybe something like:
WIN SCREEN trouble
By dodo, with 3 replies.
Last reply by danpost, about 11 years ago:
You will have to get a reference to the world before removing the objects and adding the Win object. <Code Omitted>
What kind of math relates to moving along a grid?
By RobTheRipper, with 17 replies.
Last reply by RobTheRipper, about 11 years ago:
thank you :)
Referencing Statements
By Gingervitis, with 6 replies.
Last reply by JetLennit, about 11 years ago:
okay...
how to define a bloc physically
By welleid, with 8 replies.
Last reply by welleid, about 11 years ago:
thanks guy it's perfect now !
NullPointerException, help please
By Ragtime, with 6 replies.
Last reply by Ragtime, about 11 years ago:
Thank you very much. I wrote vector because that's how people use to say in my language. Didn't know that Array is the correct term. :)
How to make the backround scroll
By JetLennit, with 15 replies.
Last reply by JetLennit, about 11 years ago:
thank you! it has worked perfectly! i will post the game (what is there currently) in a couple hours
how do you create your own method like ascendHurdle in Greenfoot?
By gquach, with 2 replies.
Last reply by danpost, about 11 years ago:
Press Control-Shift-I for auto-layout (indents everything properly); then look to see if you have exactly one line with a close squiggly bracket as the first character at the end of the class code. If not, then you need to fix your bracketing. If problem still persists, then go through the code in the class and make sure each method starts at the first indent. I am presuming that you are getting a message that says something to the effect of 'class, type, or enum expected'.
853
854
855
856
857
858
859
X