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
Problems with getOneIntersectingOnject
By RcCookie, with 2 replies.
Last reply by RcCookie, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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, almost 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, almost 7 years ago:
Ah ok, trank you! ;-)
appearing objects
By avery, with 16 replies.
Last reply by danpost, almost 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, almost 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.
HOW DO I MAKE A COUNTER
By Stives123, with 1 reply.
Replied to by danpost, almost 7 years ago:
If the counter is to be strictly internal, and int field is all you need; if visible, then you need an actor. Either way, no one can fix unseen code -- like, what have you tried (show attempted code).
How do I make a title screen?
By johannesreyes, with 1 reply.
Replied to by danpost, almost 7 years ago:
johannesreyes wrote...
I've been working on a game wherein you should rescue the other people surrounding yourself. I wanted to add a title screen before the game starts, and the player will press a key that will start the game. How do I do this? Thank you so much!
Just create a new subclass of
World
and add an
act
method to it to detect the key and set the game world active (when detected).
how to save counter (score) on the other world
By joejoe, with 6 replies.
Last reply by joejoe, almost 7 years ago:
ok thanks i figured it all out by myself thank you so much glad there are some people who has efforts in replying to us new people thanks again :)
timer on spawning things
By joejoe, with 19 replies.
Last reply by danpost, almost 7 years ago:
joejoe wrote...
what does invalid closing tag mean?
See for yourself. Hit "Quote" on my post, third from last, including this one. Look right at the end of the block of code.
How do I change the pivot?
By AG287, with 2 replies.
Last reply by AG287, almost 7 years ago:
Thanks danpost, works great now :)
169
170
171
172
173
174
175
X