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
Counting a class' objects
By MirunaTele, with 3 replies.
Last reply by MirunaTele, over 8 years ago:
Thanks very much!
What's the problem? :((
By ORSODO, with 1 reply.
Replied to by Super_Hippo, over 8 years ago:
The level1 method is only executed once in the very first act cycle (when this object is created). Chances are that you can't press 1, 2 or 3 that quickly.
How can i use those classes (see in the topic) in my scenario
By frequency, with 29 replies.
Last reply by Super_Hippo, over 8 years ago:
Where is your saveHighScore method now? It seems like it isn't in the MainMenu world anymore.
Non static method in static context
By Paul12345, with 1 reply.
Replied to by danpost, over 8 years ago:
If only one of the type of object you need the coordinates of are in the world, you can use: <Code Omitted>If using this in an actor class prefix 'getObjects' with 'getWorld().'.
WHY DOES THE FUCKING PROGRAMMMMMMMMMMMMMNMN WONT WORK :(:(:(:(:(:():((/)Tassaduiahfoiaeög
By IHRHUREN, with no replies.
I TRIED TO USE THE DEBUGGRRAHF AS WE(HSLL THE REST OF THE BUSPFHAOAFUOIFA AND NOTHING WORKED
FICKEN wrote...
EIN HURENSOHN BLEIBT EIN HURENSOHN
Detecting Color of the Pixel
By Flare, with 8 replies.
Last reply by Flare, over 8 years ago:
It is important at all times. If PlayerOne is not on the red portion of LineOne, then it needs to reset.
How to save world
By Paul12345, with 1 reply.
Replied to by danpost, over 8 years ago:
You should be able to save the worlds by manually creating the specific world you want to add objects into. Without a more clear view of what you are working with, I cannot guarantee it will work for you, however.
Snake Game
By ORSODO, with 2 replies.
Last reply by danpost, over 8 years ago:
The 'design' method should only be executed once when the actor is created. Remove the call from the 'act' method and add a constructor block to the class: <Code Omitted>You could replace the call to 'design' in the constructor block with the code within the 'design' method and then delete the 'design' method from the class.
Deleting Another Actor
By RynoCoder, with 1 reply.
Replied to by danpost, over 8 years ago:
If after the deletion, no more of that type actor are in the world, then use 'getWorld().removeObjects(getWorld().getObjects(CLASSNAME.class));', where CLASSNAME is the type of actor to be deleted.
HEEELP
By ORSODO, with 2 replies.
Last reply by ORSODO, over 8 years ago:
thx
Creating a Timer
By Atebits, with 1 reply.
Replied to by Super_Hippo, over 8 years ago:
Use this line in the updateTimerDisplay: <Code Omitted>(At least until the next version of Greenfoot.)
Accessing a variable from a different class
By Acituanbus, with 4 replies.
Last reply by Acituanbus, over 8 years ago:
Thanks!
HighScore Board
By GethEvs, with 15 replies.
Last reply by danpost, over 8 years ago:
I don't know -- are you getting some other error(s)? What I gave should have fixed the errors you were getting -- well, if you changed them correctly, which I see you have not. The '6's on line 26 should be '96's; on line 28, the '11' should be a '176' and the '4's should be '64's; and the '11's on lines 30 and 31 should be '176's as well.
How can i play a gif when score is X only once?
By frequency, with 9 replies.
Last reply by frequency, over 8 years ago:
Hello,thanks for replying. How do i syntax the gif code? Do i place it as addObject after i set it as an image in the class i want? How do i syntax it? Thank you!
How to make a checkerboard in Greenfoot?
By Zweeg, with 4 replies.
Last reply by danpost, over 8 years ago:
All you need to create is one portion of the checkerboard pattern (4 squares of alternating light and dark) and use the 'setBackground' method to apply it to the entire background: <Code Omitted>The image is totally filled in first to guarantee that no transparency is in the image (you get unwanted behavior
290
291
292
293
294
295
296
X