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
Every actor in my world is now a green foot...
By footpickle, with 1 reply.
Replied to by footpickle, over 6 years ago:
ah wait it fixed
Terminal Window error when looping background music
By DaRafster, with 1 reply.
Replied to by danpost, over 6 years ago:
It means you need to use a music editor to re-save the file with the option to save tags turned off.
java.lang.ClassCastException need help
By minetruck, with no replies.
hi i have a game where you have to click on a dice and when you have 66 points you win. i want to reset all counters when 66 points are achieved. but i have this problem: java.lang.ClassCastException: class player1 cannot be cast to class player2 code of the winner screen: <Code Omitted> code of the method: <Code Omitted>and the code to show the winner screen: <Code Omitted> thanks
remove an intersecting object
By Claudiu, with 18 replies.
Last reply by Claudiu, over 6 years ago:
I have a queston. if i make a game can i publish it somewhere instead of greenfoot site?
If the mouse is clicked, place a new image
By DaRafster, with 2 replies.
Last reply by DaRafster, over 6 years ago:
danpost wrote...
The getWorld method returns the value of the field: <Code Omitted>in the Actor class: <Code Omitted>The field is used to indicate what world, if any, the actor is in. While the actor is not in any world, its value will be set to
null
. Once you execute line 26, which removes the button from the world, the button loses its reference to the world it was in. So, it would be impossible to add an object into that world at that point. Either add the object into the world before removing the button or s
int in showText
By Yoshi21137, with 27 replies.
Last reply by Yoshi21137, over 6 years ago:
It works now. Thanks for helping me and for staying with me for the 3 days you did!
Trying to create a blinking image
By DaRafster, with 3 replies.
Last reply by danpost, over 6 years ago:
Basically: <Code Omitted>
How do you add 1 point every time an actor touches instead of it rapidly adding points while it's already touching?
By Adrian2004, with 3 replies.
Last reply by danpost, over 6 years ago:
Add a field to contain a
Point
object and set it to any touching
Point
object. Also, set it to
null
if not touching any
Point
object. Only score if field does not contain the
Point
object it currently touches.
Need help with highscore system and a fix
By BalanZeD, with no replies.
Hey, I'm new to Greenfoot and need to finish my Game. I would like to add a highscore which is saved and everytime a new highscore is achieved the backround should be switched. that is all it should do and i really need your help. I have another problem in my scenario. I uploaded it and please check it out. I want to switch something. I want that the "Flappy2" in the "bg" subclass is flying faster than the "Flappy" in the Background subclass but it only works if i click reset and then new Background. But if I start this scenario the "Flappy" is flying faster than it should. Only the Flappy2 should fly faster in its world (bg) and I dont want to click reset and new Background everytime. I wanted to know if there is a solution. Thanks !
Need help with highscore system
By BalanZeD, with 4 replies.
Last reply by BalanZeD, over 6 years ago:
I'm really sorry for wasting your time. I have a present for you as well if you could help me here ;D
How do I delay a line of code?
By footpickle, with 7 replies.
Last reply by footpickle, over 6 years ago:
I found out another solution, but it now disables the feature that removes the bomb when it runs out of life out goes off the edge of the world. all it does is changes the image, I have no idea why it would make the bomb exist longer
Bullet doesn't fire. It just stays where it is and then causes and error.
By footpickle, with 33 replies.
Last reply by danpost, over 6 years ago:
footpickle wrote...
Erm... I'm sorry but I literally have no money. :/
Double of nothing is nothing.
Setting an Image if "left" and "right" keys are not pressed
By DaRafster, with 3 replies.
Last reply by danpost, over 6 years ago:
DaRafster wrote...
I've played around with "else" before I posted this discussion, couldn't figure it out. I managed to do it with the right arrow key, but I couldn't manage to do it with the left arrow key. On my second attempt, it was the other way around. May you please demonstrate what conditions I could put in my else statement in order for me to achieve this?
Please show what you tried.
wait() doesn't work
By Mato, with 3 replies.
Last reply by danpost, over 6 years ago:
Mato wrote...
And should I use wait() , wait( long ) or wait( long, int )?
Neiither. You should never use
wait
. Use
Greenfoot.delay(int)
.
need help
By Starlord_20, with 7 replies.
Last reply by danpost, over 6 years ago:
Starlord_20 wrote...
if i do, it summons again after clicking act()
-- whether you do or not.
144
145
146
147
148
149
150
X