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
doing Greenfoot book exercise getting error at the end
By KIOP, with 1 reply.
Replied to by danpost, almost 7 years ago:
There is no end to your class (no bracket to pair up with the one on line 7).
One Eror in code
By KIOP, with 9 replies.
Last reply by KIOP, almost 7 years ago:
Thank you that fixed my error
variable=otherVariable?
By Fargesia, with 2 replies.
Last reply by Fargesia, almost 7 years ago:
Ok many thanks I made it like that to get it working: <Code Omitted>Working just fine now, thanks!
Code problem
By RezaDK, with 1 reply.
Replied to by danpost, about 7 years ago:
RezaDK wrote...
Do you know what is the problem of my coding in the pic? << Link Omitted >> BR
Looks like you are missing a class closing squiggly bracket at the end. If you indent properly (use
Control-Shift-I
, on
Windows
), you might spot it easier.
Problem by editing new project
By Pilo5201, with 1 reply.
Replied to by danpost, about 7 years ago:
Change your "super" line to: <Code Omitted>
Problems with getOneIntersectingOnject
By RcCookie, with 2 replies.
Last reply by RcCookie, about 7 years ago:
You are right with the classes, I´m not that good at java just jet. Also, my problem was solved simply by adding these brackets around the "getOneIntersectingObject()" and adding the "(Surface)". I knew the problem with the nullPointExeption though. Thanks a lot, RcCookie
Help sharing game
By TeamusTu, with 2 replies.
Last reply by TeamusTu, about 7 years ago:
Ok, so it seemed the problem was my static variable for my block, I moved that over to my level 2 world and it seemed to have worked. Thanks for pointing me in the right direction!
Mandelbrot
By ronald, with 13 replies.
Last reply by danpost, about 7 years ago:
ronald wrote...
i have a variant formula of mandelbrot, how to transform it into java f (z, c) = sinh (z) + 1 / c2
sinh(z)
, where
z = a+i*b
, is
sinh(a)*cos(b)+i*cosh(a)*sin(b)
. So, the new real coefficient of
z
before adding the constant is
sinh(a)*cos(b)
and the new coefficient of the imaginary part of
z
before adding the constant is
cosh(a)*sin(b)
.
Help with error in my code
By KIOP, with 20 replies.
Last reply by danpost, about 7 years ago:
KIOP wrote...
I did put a bracket but I now have an error on 49 33 and 32 saying im using shoutHooray and isalone incorrectly.
Please provide your entire
Cat
class codes.
Correct download
By rhd0008, with 1 reply.
Replied to by danpost, about 7 years ago:
rhd0008 wrote...
I'm currently trying to change the source code for asterpoid1.gfar game, but the method I am looking to change (createAsteroid) isn't in the vanilla source code for the space subclass. Can anyone help me find a better download?
Please show your entire current
Space
class codes.
MouseInfo is always null? - Getting coordinates of the mouse
By ihjufaeshiju, with 7 replies.
Last reply by danpost, about 7 years ago:
ihjufaeshiju wrote...
Will this be enough? https://drive.google.com/open?id=1heIY4mf4MUPbT2QVdmTzgpewzGenFNNA just right click on the World and execute SpawnMode() method to test it.
Maybe you did not know that you can add an
act
method into your World subclass codes.
How to add own image as Background?
By Timb, with 4 replies.
Last reply by Proprogrammer04, about 7 years ago:
As @danpost said, I dont know your Code, but the general code for adding an image to your background is this: <Code Omitted>Ohr it should be, I am writing this in my mobilephone, and cant test it... Im not surfe if there hast to be something like <Code Omitted>Or something similar, but you will just have to try out...
Creating a new World
By Proprogrammer04, with 2 replies.
Last reply by Proprogrammer04, about 7 years ago:
Ah ok, trank you! ;-)
appearing objects
By avery, with 16 replies.
Last reply by danpost, about 7 years ago:
avery wrote...
what is wrong with my program? << Code Omitted >>
You cannot add an actor into a world that it is already in. If you want to add new actors, you need to create new actors. Your code above can be written as:
Scrolling text
By Bluetiger, with 8 replies.
Last reply by danpost, about 7 years ago:
Bluetiger wrote...
Yes this is exactly what I want. Ahah sorry that I was a bit confusing
You will need a timer and two
String
fields -- one for "input" and one for "output". A base image would also be helpful. See what you can put together and come back with your attempted codes if and when you get stuck.
169
170
171
172
173
174
175
X