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
need help with my project
By Help-please21, with 3 replies.
Last reply by Nosson1459, over 9 years ago:
Try closing Greenfoot then reopening it again then see if it compiled. If it doesn't work because of an error then fix it if you can't then show your code.
i need a two hit kill object help
By ineedhelp, with 11 replies.
Last reply by ineedhelp, over 9 years ago:
well, it's too late now I already submitted the program because it was due but thank you for all the help u provided for me. You are A wonderful person hope u have a nice day
Accessing variable from other class
By Hondrok, with 25 replies.
Last reply by Hondrok, over 9 years ago:
danpost wrote...
You did not copy lines 98 and 111 correctly.
it works thank youu
Incompatible types
By Solomon, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
No, when you place it, no image is created → the default green foot icon shows up. To avoid that, the class code should look like this: <Code Omitted> 'public Counter' is the constructor which will be executed when the object is created (so it will show the image immediately and not only after pressing 'run'). It only has to update
a loop
By biem, with 4 replies.
Last reply by biem, over 9 years ago:
Thank you
Making an object change into another
By cooknj, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
Have a variable in the Treasure class. Each time you visit it, you increase it by one. When it reaches 3, then add the 10 coins and so on.
Can't access Pacman from another class
By TheGreenFoot, with 12 replies.
Last reply by TheGreenFoot, over 9 years ago:
Thank you, now running without errors!
File i/o to Display top 5 scores when button is clicked
By new_on_greenfoot, with 16 replies.
Last reply by new_on_greenfoot, over 9 years ago:
That works! Thank you so much
Can't access Pacman from another class
By TheGreenFoot, with 1 reply.
Replied to by danpost, over 9 years ago:
Please refer to
this discussion post
.
How to make button for change world
By Greenboy, with 2 replies.
Last reply by Greenboy, over 9 years ago:
Thanks sir!
Need help with Tron Game
By KidDiamond11, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
The ?? could be getX() and getY() to get the current location.
Specifying parameters of type java.lang.Class
By earnold, with 5 replies.
Last reply by danpost, over 9 years ago:
davmac wrote...
This is not quite correct; the
type
of
Worm.class
is
Class<Worm>
. So, for instance, it is possible to write something like: < Code Omitted> So,
Worm
and
Class<Worm>
are both types, but they are different types: one is the type of the Class instance of the other.
I had a strong suspicion that I was getting something wrong there (was having a hard time trying to express my answer). Thank for the clarification.
Score
By puddle148, with 15 replies.
Last reply by danpost, over 9 years ago:
puddle148 wrote...
danpost whenever i take the static context off of the counters the PlayerScore and dealerScore get errors saying non static cant be referenced from static context.
Alright. I guess you can keep the Counter object fields, only those containing Counter objects, as static fields; but, I suggest that you assign their objects in your world constructor -- not in their line of declaration.
need help some of my actors wont spawn wont spawn after i hit restart
By jrod159, with 4 replies.
Last reply by jrod159, over 9 years ago:
yes the static fields were the problem, works fine now thank you for your help :)
Discussion
By vivanbre000, with 1 reply.
Replied to by TheWeeg, over 9 years ago:
Good morning
403
404
405
406
407
408
409
X