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
Trouble jumping
By ShaunThompson12, with 8 replies.
Last reply by ShaunThompson12, over 10 years ago:
Thank you both very much I made the changes both of you suggested and it worked. Thank You!!!
Trying to create and Arkanoid
By danielartine, with 2 replies.
Last reply by danielartine, over 10 years ago:
Ok, thanks, i'll try do something.
constructor cannot be applied to given types
By riachiyo, with 2 replies.
Last reply by davmac, over 10 years ago:
As for the problem, you have a private inner class called 'wait' (why doesn't it start with a capital? I'm it was mentioned to you in a previous discussion that Java classes should start with a capital) only has a constructor that takes no parameters (line 722): <Code Omitted> You are then trying to create a new instance of this inner class, eg on line 573: <Code Omitted> ... but you are passing a parameter ('null'). Same again on line 612 (the line numbers you gave in your post above seem to be wrong) a
Score counter problem
By e.vill, with 1 reply.
Replied to by danpost, over 10 years ago:
You can be quite sure (provided you did not make any changes to it) that the Counter class code is okay -- that the problem you are experiencing is not due to its code. Usually, when people have a problem similar to what this appears to be, the problem is in their World subclass. Post its code.
What does Get Objects do?
By etbillder, with 5 replies.
Last reply by etbillder, over 10 years ago:
Never mind, I figured it out. :)
counter problems
By sophiaking, with 1 reply.
Replied to by danpost, over 10 years ago:
Show the code of the Counter class and the code in your world class where you create and add it into the world.
Mouse Info
By RagingAsian, with 4 replies.
Last reply by RagingAsian, over 10 years ago:
figured that out too. anyway thanks for the help
Re-initialyze World
By Twentyonestreet, with 3 replies.
Last reply by Twentyonestreet, over 10 years ago:
Super_Hippo, thank you, everything works
Iterator?
By Hiro, with 2 replies.
Last reply by danpost, over 10 years ago:
Hiro wrote...
I noticed that whenever I run the game, there is a particular briefcase that doesn't contain any value in it which results to the failure of the whole program.
"noticed" -- how? "doesn't contain any value" -- do you mean 'null'? "failure" -- was an exception thrown -- and if so, what did it say?
The briefcase without a value changes everytime I reset the game.
Is this something that is found out before or after the 'shuffle' method is executed? If you are getting a NullPointerException error, posting its output and indicating which line the error occu
Deal or No Deal Problem
By Hiro, with no replies.
- solved -
constructor wait in class DealOrNoDeal.wait cannot be applied to given types?
By Hiro, with 2 replies.
Last reply by Hiro, over 10 years ago:
Thank you very much!
Null Pointer Exception
By Zapp, with 4 replies.
Last reply by Zapp, over 10 years ago:
Ah, OK, I canSee. Many thanks!!!
counter
By RagingAsian, with 1 reply.
Replied to by danpost, over 10 years ago:
First, create a simple functional counter. Then, work on its image. If you have a specific issue in either step, post the code you tried and explain the issue. After those steps, you can work on having a specific actor use an instance of the class.
I don't see an animation... Everything happens in 1 Frame...
By enchino, with 2 replies.
Last reply by enchino, over 10 years ago:
Thank you davmac, thats so logic.. I'm a amateur, thats why i have noobie codes xDD
Help with polymorphism
By Twentyonestreet, with 9 replies.
Last reply by Twentyonestreet, over 10 years ago:
danpost, thank you! Got it working.
593
594
595
596
597
598
599
X