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
From entering a door/passage that automatically moves you to the next level
By lolitsme, with 6 replies.
Last reply by danpost, almost 10 years ago:
lolitsme wrote...
Ohh! Last question, how can I make it continuous? I can know move from level 1 to level 2. I dont know what to do with level 3
Just add additional if statements in the 'isTouching(Door.class)' block.
[Tutorial] Create FlappyBird
By AzharC, with 3 replies.
Last reply by AzharC, almost 10 years ago:
website is complete now with tutorials on how to create Flappy Bird. There are a total of 26 mini-lessons. Enjoy!
how to make text in java?
By sahtiamurti, with 5 replies.
Last reply by danpost, almost 10 years ago:
sahtiamurti wrote...
i make a button in greenfoot but i want to put a text in the button, how to do it?
How to create a button with text is explained in my
Value Display Tutorial
.
Trade Help
By bleeblob43, with 1 reply.
Replied to by danpost, almost 10 years ago:
bleeblob43 wrote...
Should I have an inventory class with integers for each number of items
An inventory is just a list of items. Java already has an extensive supply of classes that create all kinds of lists. However, you might want some extra methods that are not readily available (like getting the number of objects of a specific type in the list; or, getting one or all objects of a specific type from the list). It would make sense then to create a subclass of the ArrayList class to add those methods that deal with Class types. Something like this:
getObjectsInRange question
By ZoeF, with 3 replies.
Last reply by danpost, almost 10 years ago:
Okay. Have world create and maintain the list adding when created and added to world and removing any that are removed from the world. Then, have the tower determine the first in the list from what are in range:
add object on the same position
By Sk1llG4m3r, with 3 replies.
Last reply by danpost, almost 10 years ago:
Sk1llG4m3r wrote...
it says: x(y) is not public in Greenfoot.actor;cannot be accessed by outside package
Show what code you tried when you got that error message.
How can I get the images on the left side of the screen to change with a mouse click?
By Astralman, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
Line 10 needs a condition: <Code Omitted>
jar File does not working
By PaulusMolestus, with 20 replies.
Last reply by danpost, almost 10 years ago:
@Super_Hippo, I was going to upload a copy of that scenario and test with it. I forgot to change the title when uploading, so it just updated the old one (with no changes). However, It appears UserInfo is working okay now. Thanks for the assist.
How can make my actor move right to left?
By lolitsme, with 6 replies.
Last reply by danpost, almost 10 years ago:
There is also this: <Code Omitted>
nullPointerException
By Nosson1459, with 1 reply.
Replied to by Nosson1459, almost 10 years ago:
fixed it its fine
cannot find symbol
By divinity, with 2 replies.
Last reply by divinity, almost 10 years ago:
thanks a lots super_hippo, thanz soooo very much
Mouse
By FutureCoder, with 4 replies.
Last reply by FutureCoder, almost 10 years ago:
thanks, this helps alot
Codes for the Menu Bar and Level to Level
By lolitsme, with 3 replies.
Last reply by Super_Hippo, almost 10 years ago:
It could look like this: <Code Omitted>
why does an error come up saying fail if not in world for the simple code
By Maanas23, with 2 replies.
Last reply by davmac, almost 10 years ago:
What does the error really say? Read
all
of the message.
Hello... I need statement regarding pop-up window.
By riyazahamed887, with 1 reply.
Replied to by danpost, almost 10 years ago:
riyazahamed887 wrote...
In my game, when the car hits a barrier or any obstacle, it has to show game-over/wins... I need help regarding this issue. I have tried various set of statements, but none of them worked.. And I need this statement to be placed inside the Intersect statement loop..
The basics should be something like this:
428
429
430
431
432
433
434
X