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
Tennisball: cannot find symbol- method getPlayer()
By Tryshot, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Please use code tags. In line 3, you use getPlayer twice. Is that wanted?
Snake game. Body parts follow actors in front of them
By LakyJ, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Line 67 creates a variables i and sets it to one → every Body object will have i=1. When they would have i=numberOfBodyParts (which is when you more 67 outside the method), then in the moveBody method, they would move faster. I suggest your Snake has an ArrayList of Body objects (can just be Actors, they don't do anything on their own). Then, whenever an Apple is eaten, a new one is added to the List. When moving, you move the last Body to the second last, the second last to the their third and so on.
ArrayList A
Random Background
By Fifilein, with 7 replies.
Last reply by Fifilein, over 9 years ago:
danke dir! Jetzt funktioniert es wie es sollte!!
control animation with button
By iban, with no replies.
help me again master, i have problem for take method animation in class orang. i want if i press the butoon, the animation is runing. thank's master :)
Change in Direction help
By Asiantree, with 14 replies.
Last reply by Asiantree, over 9 years ago:
Now, how can I get rid of other Ants that may be present using this code inside the Ant's act method?
Button Fire / Button shoot
By iban, with 31 replies.
Last reply by iban, over 9 years ago:
oh my Good. thank's thank's thaaank'sss mr.danspor.. this work. very thank's for you. this very work. . i very tried wkwk. thank you MASTER :)
creating an animated image
By AAA355, with 8 replies.
Last reply by iban, over 9 years ago:
sama-sama :D
ScoreBoard Error
By AAA355, with 7 replies.
Last reply by AAA355, over 9 years ago:
thank you so much, it finally works.
Get Object at Height
By rockon411, with 9 replies.
Last reply by danpost, over 9 years ago:
rockon411 wrote...
World Documentation
This is the website that I get when I click on documentation. It seems to be through my school so I'm not 100% sure that you will be able to access it, but have at it.
I was able to view the documentation and that is all I needed to understand what you are dealing with. Thanks.
Scanner Objects
By rockon411, with 3 replies.
Last reply by rockon411, over 9 years ago:
Thank you!
Call Method in other class
By iban, with 4 replies.
Last reply by danpost, over 9 years ago:
iban wrote...
give me example program all control use button or mousePressed for move, shoot or any .. pleaseeeeee
I explained this
here
.
Creating Reload time
By AAA355, with 3 replies.
Last reply by AAA355, over 9 years ago:
nevermind, i was able to fix the movement issues and the reload time is perfect, thank you so much for the help. :)
Array of Objects
By BrownDwarf, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
There is a logical error. The code is in a class called Background. For every Background object, line 20 creates an array which can hold 256 Background objects. Another problem is that you keep adding new background objects from the act method which themselves have the array of 256 Background objects and which also create new Background objects.... I am not sure what the Background Actor class should do and I didn't program a Minesweeper yet, but I would think of having this structure: When the world is created, it adds 256 instances of an Actor subclass to the world. It randomly chooses
Remove Actor
By Nooooob, with 8 replies.
Last reply by Nooooob, over 9 years ago:
<Image Omitted>
How to call for a method in an intersecting object?
By rick_kik, with 2 replies.
Last reply by rick_kik, over 9 years ago:
My problem was that it gave me an error at the blok.leven--; part. it said it couldnt find the variable leven. But I changed the first line and it works perfectly now! Thanks a lot for your help!
370
371
372
373
374
375
376
X