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
How can I spawn a Object on another Object
By Prummi, with 1 reply.
Replied to by danpost, over 4 years ago:
Prummi wrote...
How can I spawn ... Object at the same position where my actor is?
<Code Omitted>
where is the boolean?
By divinity, with 4 replies.
Last reply by danpost, over 4 years ago:
divinityI wrote...
: am still getting this error here with this line of code: totalpay = ((hoursWorked >= 40) && (hoursWorked <= 1.5)); do I remove or how to fix it
danpost wrote...
Remove lines 8 and 17. Then change line 51 to: <Code Omitted> Line 59 needs parentheses around "getHours() - 40".
Adding text and image and then make it disappear.
By BoondockSaint, with 14 replies.
Last reply by Gabe1098, over 4 years ago:
BoondockSaint wrote...
Gabe1098 wrote...
you can make a text like this<Code Omitted>
Also thank you. I will try that as well if i still have problems with what I'm doing horribly right know.
oops I'm sorry I should have put setImage instead of showImage
I need help making a grabbing mechanic
By eboy600, with 21 replies.
Last reply by nccb, over 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, over 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, over 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, over 4 years ago:
Ah I see, thanks for the explanation =)
how to upload my scenarios?
By leslie1999, with 4 replies.
Last reply by leslie1999, over 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, over 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, over 4 years ago:
it works! thanks!
how do i remove an actor
By Toni, with 1 reply.
Replied to by danpost, over 4 years ago:
Are you calling
die()
from anywhere?
Text in Greenfoot?
By Jhoffi, with 5 replies.
Last reply by danpost, over 4 years ago:
You could also do it this way: <Code Omitted>
STAR WARS
By ronald, with 9 replies.
Last reply by danpost, over 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, over 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.
63
64
65
66
67
68
69
X