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
hp problems
By loldertroll, with 3 replies.
Last reply by danpost, over 7 years ago:
More precise might be the following for when boss takes damage: <Code Omitted>
Can't work out what number I need to put for the game to detect me touching the right side of the world
By AmyIsBadAtCoding, with 2 replies.
Last reply by AmyIsBadAtCoding, over 7 years ago:
Ahh yes silly me, thanks a bunch
How can I make greenfoot choose a random world?
By AmyIsBadAtCoding, with 4 replies.
Last reply by Super_Hippo, over 7 years ago:
Well, if there are 60 act cycles a second, the chance that you notice it is small, but it can happen that the object is already at the edge of the world for some act cycles before the world actually changes.
Why is this an illegal expression?
By AmyIsBadAtCoding, with 3 replies.
Last reply by AmyIsBadAtCoding, over 7 years ago:
Thanks, it works now!
error in the terminal
By loldertroll, with 5 replies.
Last reply by Super_Hippo, over 7 years ago:
This should also work: <Code Omitted>
My game wont end when I want it to
By AmyIsBadAtCoding, with 4 replies.
Last reply by AmyIsBadAtCoding, over 7 years ago:
Brilliant, it works! Thanks mate
Random object only appears once
By montiqs, with 4 replies.
Last reply by montiqs, over 7 years ago:
Thank you very much!
Lizard Dash
By itscarlwheezer, with 1 reply.
Replied to by danpost, over 7 years ago:
False views on that game.
Making an Object Disappear When Clicked
By rb6333, with 4 replies.
Last reply by itscarlwheezer, over 7 years ago:
The issue with your game is that the scope of the sniper covers the other image so you cannot click it. To fix this you want to make it remove the object when you click on specific coordinates, not on the object itself.
My Code Doesnt work
By hassan08, with 7 replies.
Last reply by Super_Hippo, over 7 years ago:
No, 3.5.0 already supports the ask method. So unless you have a your own Greenfoot class in your project or something, it should find the method. You could try to create a new scenario and only put in this code (comment out lines 25 and 30) and report back if you get this error. If yes, you could upload your scenario with available source, so we can check for ourselves.
Spawn Actors in Certain Area
By AdiBak, with 1 reply.
Replied to by danpost, over 7 years ago:
Dividing by 4 and then multiplying by 4 will still get you anywhere across the world, but only at any x-coordinate that is a multiple of 4. Take the value of 1/3 the world width and add a random up to 1/3 the world width.
Help increasing speed of an object each level
By taylor360, with 1 reply.
Replied to by danpost, over 7 years ago:
taylor360 wrote...
I need to find a way to increase the speed of the cars with each level to increase the difficulty.
Your car class will require an
int speed
field. Use it for moving and change its value when you change levels.
Who is the inventor of Greenfoot
By DrakeGuo, with 1 reply.
Replied to by rb6333, over 7 years ago:
The founders of Greenfoot are Michael Kölling and Poul Henriksen
best score and the score in the end game doesn't appear,it stays zero needs help!
By Tasya16, with 6 replies.
Last reply by Super_Hippo, over 7 years ago:
Why is the first code such a mess and not indented at all? You didn't say if the Score class works as intended. So is it showing the score correctly and only the Label class does not? You didn't show where you add the Score object to the world and not how you adjust its value (especially in case it does not work – check question above). Basically you should try to check which parts of the code are working and which specific part is not. And you should explain that. @Scorcher: The "int score" is not static, so it a) doesn't have to be set to 0 manually from the first world's constructor a
IA in a greenfoot project
By Fargesia, with 2 replies.
Last reply by Scorcher, over 7 years ago:
It would be time consuming, but you could just have it mindlessly trying to move pieces until it makes a valid move, then end its turn.
186
187
188
189
190
191
192
X