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
How can I make a object change color when the mouse is on it?
By Finn.C, with 1 reply.
Replied to by danpost, over 6 years ago:
The condition on line 15 will be true-- that is, the mouse will not be detected as moving on this object unless the mouse is moved on this object. To clarify, t will not be detected as moving on this object if the the mouse is ON the object, but does NOT move. Only change back to normal image BOTH when mouse moves, AND NOT on this object: <Code Omitted>
How do I create a countdown timer for my game?
By KiddoNow, with 1 reply.
Replied to by danpost, over 6 years ago:
Please refer to my
Value Display Tutorial
scenario.
Please help me with my assignment
By addia, with 8 replies.
Last reply by danpost, over 6 years ago:
addia wrote...
<Code Omitted>
In the quoted code, you do not need the score until after line 8. Maybe you can work with the following:
Check something is disappear in world
By MianBao_Bread, with 2 replies.
Last reply by MianBao_Bread, over 6 years ago:
danpost wrote...
MianBao_Bread wrote...
I want make a game like pacman, now I want to end the game when all score disappear. This is my Code << Code Omitted >> It's not work, I want to know how to solve it. I am sorry that my English is not good.
The condition in line 1 will always be
false
. A
List
object is always returned by
getObjectsInRange
. You need to check the size of the list returned; or rather, check if it is an empty list
I need help with my code again. I can't get my actor to jump at all.
By jjc289, with 6 replies.
Last reply by Super_Hippo, over 6 years ago:
In your checkFall-method, you say that it should jump whenever it is on ground. The only time the jump-method should be called is in line 25. Replace line 62 with this: <Code Omitted>
resizing actor (smaller)
By annika.g, with 3 replies.
Last reply by danpost, over 6 years ago:
annika.g wrote...
Ok thank you, but that didn't really work.
What happened and what codes are you using? In what way is it not what you want? Did you set the image as the default image of objects created from the class?
Can I make this new actor the size of an actor that's already there and already has the correct size? Couldn't I just tell this new actor to adapt to the size of the already correct one?
Better to fix from above. If total fail, could try something along these lines.
I Need Help With Adding complexity to my game
By jackmads8, with 1 reply.
Replied to by danpost, over 6 years ago:
jackmads8 wrote...
how I would add a timer (counting up) on screen
See my
Value Display Tutorial
scenario.
how I would save the score of that timer into a high score table.
Multiple factors will determine this -- mainly, location and structure of high score table.
The game starts lagging
By Alexkr, with 4 replies.
Last reply by Alexkr, over 6 years ago:
I fixed it, thank you.
How do I have a prompt appear after a certain amount of time?
By arm0123, with 2 replies.
Last reply by danpost, over 6 years ago:
arm0123 wrote...
<Code Omitted>
With this part of your code, line 1 will not ever be true. The two String object are not the same object, regardless of the contents of the strings. Use the following to compare their contents: <Code Omitted>I cannot see any reason to have line 3 in this part of your code as the scenario would already be in a running state.
How do I move my work to another desktop?
By Faizcon, with no replies.
I am a beginner using greenfoot in high school and I am trying to put the work I did at home, on a different compute but I am not sure what to do, I tried using google drive, dropbox but was not sure exactly what to do since the best I could do was put the folder on google drive and open it from the other computer but the work is not saved.
How do I get the actors to spawn?
By Aden, with 1 reply.
Replied to by Aden, over 6 years ago:
i fixed it by myself nvm.
Please help with my assignments
By muller25, with 1 reply.
Replied to by danpost, over 6 years ago:
muller25 wrote...
i would like to ask how type the codes for mastermind game in greenfoot?
This is too general of an ask. Are you wanting someone to do your assignment for you? Try anything. Show what you tried and ask for help when you get stuck on something specific. I will say this much: in turn-based games (which mastermind basically is -- guess, followed by hints), your world will "control" the game.
Need help with simulation.
By addiehackney, with 1 reply.
Replied to by danpost, over 6 years ago:
addiehackney wrote...
I am making a simulation where planes fly from one city to another. How do I make the actors move from one city to the other?
Basically, your plane would need to retain a destination, or coordinates, to turn and move toward.
Problem with Limiting the use of a function
By PatrikBurris, with 7 replies.
Last reply by PatrikBurris, over 6 years ago:
Thank you very much for all the help
I need help with my code
By jjc289, with 3 replies.
Last reply by jjc289, over 6 years ago:
nevermind. It is figured out.
163
164
165
166
167
168
169
X