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
I need help making a grabbing mechanic
By eboy600, with 21 replies.
Last reply by nccb, almost 4 years ago:
The problematic user's account has been disabled and their comments removed.
Making a button visible on my main screen when run is started
By xixEmilyxix, with 2 replies.
Last reply by xixEmilyxix, almost 4 years ago:
I managed to figure it out today, thanks though. Turns out I did not add the add object part into the world code
How to reduce image Size?
By Me.SatishReddy, with 4 replies.
Last reply by Gabe1098, almost 4 years ago:
Me.SatishReddy wrote...
Hello, Is anyone there to help me? I am looking to Reduce the Size of my Image in Actor method...Could someone help me with this problem!!
<Code Omitted>
List sometimes returns NullPointerException
By RoverKnight, with 9 replies.
Last reply by RoverKnight, almost 4 years ago:
Ah I see, thanks for the explanation =)
how to upload my scenarios?
By leslie1999, with 4 replies.
Last reply by leslie1999, almost 4 years ago:
thank you very much!!!
how can I get my gui to popup with all of the jbutton, labesl and textarea etch to show
By divinity, with no replies.
I have created an application for a subway program. I want it to popup to preview how the jlables, jbutton, textarea, jlist and all of the component on it, the codes that I have used it work but the problems are that none of the jbuttons, jlist, textareas, jlables, jcombobox is not showing. for some reason, the gui popping up blank with nothing showing, can somebody take a look at my codes and tell me why it is not showing anything and what i have to do to get it to show. here is the codes. <Code Omitted>
How can I add a picture
By Jhoffi, with 2 replies.
Last reply by danpost, almost 4 years ago:
To set an image to a question, do it the same way as you did
questionText
or
explanation
. Use
String
filename of image. The code given above is only for construction. It has nothing to do with the actual asking and answering of the questions (it only provides the contents of each question). So,
setImage
and
addObject
are not used in that block of code.
addObject in Actor class returns null
By Shqxin, with 2 replies.
Last reply by Shqxin, almost 4 years ago:
it works! thanks!
how do i remove an actor
By Toni, with 1 reply.
Replied to by danpost, almost 4 years ago:
Are you calling
die()
from anywhere?
Text in Greenfoot?
By Jhoffi, with 5 replies.
Last reply by danpost, almost 4 years ago:
You could also do it this way: <Code Omitted>
STAR WARS
By ronald, with 9 replies.
Last reply by danpost, almost 4 years ago:
Any time you make a call from
act
that (1) could potentially remove the actor from the world and (2) has code beyond the call that requires the actor to be in the world, you should do something like placing the following line after the call: <Code Omitted>
How can I get this program to run properly?
By divinity, with 25 replies.
Last reply by danpost, almost 4 years ago:
divinity wrote...
but all of the names address etc are strings, dont u see that
Of course I see that. Then no problem.
int Letters & Check boolean is true?
By Gabe1098, with 7 replies.
Last reply by Gabe1098, almost 4 years ago:
Super_Hippo wrote...
That seems to be a String. <Code Omitted>int is only used for whole numbers.
Thank you it works!
How can I randomise questions?
By Jhoffi, with 1 reply.
Replied to by Super_Hippo, almost 4 years ago:
Assuming you call that method after a question was answered, you could remove the question out of the ArrayList and then switch to a random remaining one. <Code Omitted> Alternatively, you could shuffle the elements of your array randomly at the beginning of your code.
instantiate new object at specific coordinates
By footsniffer74, with 3 replies.
Last reply by danpost, almost 4 years ago:
footsniffer74 wrote...
growing would be best, its meant to be like a rising sea level
Best might be to use one actor that slowly moves up showing more of its image hiding below the world's edge. Using multiple actors will cause a streaking effect along the bottom edge of the images.
62
63
64
65
66
67
68
X