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
3 player game
By Moho, with 3 replies.
Last reply by danpost, over 11 years ago:
Moho wrote...
how exactly would the code look like then
I do not know .. what does it look like right now?
What To Do
By worldmaker, with 6 replies.
Last reply by danpost, over 11 years ago:
How do you think one might resize an object? What characteristic do you think needs changed?
bug/unexpexted use of isTouching
By fejfo, with 1 reply.
Replied to by danpost, over 11 years ago:
Unfortunately, there really is no easy way to fix this. You need to either determine the alpha part of the track image at all four corners of the car image or use some type of pad intersection method whereby a method is executed on the intersecting pad that determines if the car is on the track or not. Two types of pads would be minimally required -- one for straight-aways and the other for turns. For the straight-aways, the pad can cover all locations the car can be located; for the turns, it can be placed at the focal point of the arc the turn makes (if the arc was allowed to continue aro
time scale of the act method not linear?
By efe, with 3 replies.
Last reply by efe, over 11 years ago:
...embarrassed! Thanks guys for pointing out the obvious to me! I hope my students don't find this.
I need help with Counter
By AmericanaStorm, with 11 replies.
Last reply by danpost, over 11 years ago:
danpost wrote...
< Quote omitted > You had all the bits and pieces in your original code post (getting a reference to the Counter object and using the 'addScore' method). You just need to put them together properly.
I need not add more (everything needed was given somewhere in this discussion thread).
Interactive block
By Jellyfish, with 23 replies.
Last reply by davmac, over 11 years ago:
Jellyfish wrote...
how do I put in speed? What would the edited code be???
How about this: what value did you
intend
'speed' to represent? How would that value be determined?
getX(), getY() From Different Actor
By FlamingWaters, with 2 replies.
Last reply by FlamingWaters, over 11 years ago:
Thanks!
Increasing speed based on Score
By Montrigil30, with 2 replies.
Last reply by Montrigil30, over 11 years ago:
Thanks so much for your quick response! Really good solution, i feel like you made me go a huge step towards actually using logic in programming (Im only a newbie) Thank you again, I was stuck with this problem for so long :D
greenfoot.awt.font and color
By 60sChallange, with 1 reply.
Replied to by davmac, over 11 years ago:
There is no greenfoot.awt package. To refer to the java.awt.Font class, you have to use that name: java.awt.Font.
Problem with having bullet hit different enemies
By DarkGhost, with 5 replies.
Last reply by DarkGhost, over 11 years ago:
Sweet, thanks so much! It works now! Thanks for your help!
IOException writing debug log
By xWanna, with 2 replies.
Last reply by xWanna, over 11 years ago:
Thanks man.
Problem with Robot going back and forth forever?
By Tommy99, with 4 replies.
Last reply by Tommy99, over 11 years ago:
Oh okay, thanks.
Player movement based on player type
By senor_ribs, with 4 replies.
Last reply by danpost, over 11 years ago:
Maybe you should go over the
Greenfoot tutorials
(for basic info on using the application and getting started). You can also view some short videos (linked on the same page) for how-to on various topics. As far as the code itself, which is pure java, you can check out the
Java tutorials
. The second section,
Trails Covering the Basics
, would be the place to start.
Why won't this thing spawn!?
By DoctorMitch, with 2 replies.
Last reply by DoctorMitch, over 11 years ago:
Thank you for your concern, but I made it work so that instead of the cube class deleting itself and replacing itself in a spawn point, it would just stay where it was, and things would spawn around it. When I upload the game, feel free to see for yourself.
NullPointerException at 2DArray
By ds06, with 10 replies.
Last reply by ds06, over 11 years ago:
Thanks danpost, worked well :) I tried some differrent stuff and changed the way the Board is drawed entirely :D First it will create objects of Free for the blocks i want to be able to place. (line 27-85)
Dreieck
Viereck
Doppel
EinzelBlock
After that, the other fields of the board will be filled with blocked blocks.(line 87-95) At the end it would add the rigth amount of my placeable blocks to the field.(line 99-122)
600
601
602
603
604
605
606
X