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
Rugged Movement
By AdiBak, with 6 replies.
Last reply by AdiBak, over 7 years ago:
Hi, When I tried to publish this scenario, it took around 20-30 minutes for the publishing bar to become full, then it responded with a 500 error. Can someone please help? Thank you.
Delay
By Philipplol, with 19 replies.
Last reply by Super_Hippo, over 7 years ago:
So you want your enemy to move in one random direction every three act cycles? I just changed that to 30, so about two steps per second.
Explotions
By Supersoprych, with 4 replies.
Last reply by Supersoprych, over 7 years ago:
heres the Image if you want it [Disallowed URL]
Issues with respawning
By ErasedBlade, with 4 replies.
Last reply by N0way, over 7 years ago:
on line 6th should be or instead of and(&&) is it? that may be a problem
Help with isTouching() method
By AwesomeKid, with 2 replies.
Last reply by N0way, over 7 years ago:
change line 116 if(getOneIntersectingObject(Lava.class) != null) {
Help with Image and Displaying Text
By CROCKETTROCKETT4, with 1 reply.
Replied to by Super_Hippo, over 7 years ago:
The "Image" method lacks a return type. If it should be the constructor, its name has to be equal to the class' name. Your "GreenfootImage" method has a return type String, but it does not return anything. In fact, the method doesn't do anything. I think it would be clever to let the word methods return one word and not the whole array of words. Then you also don't need to call the methods twice. The "word" method also has a return type String, but doesn't return anything. Keep in mind that the text on an image is not updated when you change the text variable. You need to create a new imag
Open editor description prompt thing
By Olympuss, with 1 reply.
Replied to by Olympuss, over 7 years ago:
Never mind I figured out it was because I opened stride, not Java.
My counter is counting up. But I need it to count the leaves my wombat eats.
By Rawlfish, with 8 replies.
Last reply by danpost, over 7 years ago:
Rawlfish wrote...
Everything was going smooth until I compiled it and for return numOfLeaves; in line 91. It said cannot find symbol - Variable numOfLeaves
True, there is no
numOfLeaves
variable. You could change
numOfLeaves
to
counter.getValue()
.
Scaling the object's height not working
By NoobFected, with 2 replies.
Last reply by NoobFected, over 7 years ago:
thank you
Actor not in world error
By NoobFected, with 4 replies.
Last reply by NoobFected, over 7 years ago:
danpost wrote...
NoobFected wrote...
Is there like a way to fix this though? I still want to keep the setLocation method.
Insert the following immediately before the
setLocation
line: <Code Omitted>
Thanks, it works perfectly now.
Making a shooting laser
By NoobFected, with 10 replies.
Last reply by NoobFected, over 7 years ago:
Thank you!
Animal Sound Board game
By OgresHaveLayers, with 1 reply.
Replied to by danpost, over 7 years ago:
OgresHaveLayers wrote...
need help specifically for playing a sound then pausing for 1 second then playing the next sound and repeating this another 8 times. I also need help with tallying up the points when you click the correct animal.
You can list the sounds, or name of the sounds (which will still require a
GreenfootSound
field for the currently playing sound) in an array and add an int field to track which one is playing (index pointer for array), plus another int field to run the delay timer. That way, either a sound is playing or the timer is running. If timer is runnin
AREA SIZE CHANGE
By gdrgnxxi, with 3 replies.
Last reply by danpost, over 7 years ago:
gdrgnxxi wrote...
thank you! but is there any way to change the size and the color of the font? or should i use other methods? I put the showText on the world where i will flash the text
I do not believe there is any way of changing the size, color or font of text drawn with the
showText
method. You could, however, use an actor to show a text image of specified size and color combination (text color and "color behind the text" background color). The actor could be made to blink on and off by alternating the transparency of its image from full to none and back at regular interva
Mac Greenfoot
By fvila02, with 2 replies.
Last reply by fvila02, over 7 years ago:
Oh ok thank you, I should've realized that tbh. Thanks for the reply :)
Having problem with a code - removeObject does not work!
By NikhilLimaye10, with 2 replies.
Last reply by Super_Hippo, over 7 years ago:
What are you trying to do? You create a new EnemyRespawn object, you add it to the world only to remove it again instantly.
196
197
198
199
200
201
202
X