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
Placing Objects in a World using a loop
By GreenMan15, with 2 replies.
Last reply by GreenMan15, almost 10 years ago:
Oh my gosh Thank you so MUCH! Been working all morning on this and could not for the life of me understand what I did wrong. The explanation made perfect sense to me.
Meaningless Error in Console - how to get rid of it?
By LehrerKopf, with 3 replies.
Last reply by LehrerKopf, almost 10 years ago:
Sure, i can. The Code isn“t changed, just the Constructor + one additional constructor with a destruction time. Ah. And the class is renamed. Thanks!!
Objects Falling
By spider65, with 7 replies.
Last reply by danpost, almost 10 years ago:
spider65 wrote...
Can you just give me the code because I still do not get what you are saying.
I think I have supplied all the code necessary -- maybe not all in code form; but very little of what is needed was not supplied in code form -- and even that was spelled out pretty clearly.
Greenfoot Penguin Scenario Speed
By kieran, with 1 reply.
Replied to by danpost, almost 10 years ago:
You could just use an 'int' instance field for the speed of the cloud and increment it when changing directions. However, it will not take long for the cloud to move at incredible speeds. Tracking the x-coordinate of the clouds in an instance field of type 'double' can help allow more back-and-forths before they reach those outrageous speeds. However, just doing the first does get the job done (if you can deal with the long-term behavior imposed). Placing a maximum limit to the speed might be a viable option. If you still have issues, post the code that you are trying to use so we can g
Help me for switching world
By thewisegamer, with 10 replies.
Last reply by thewisegamer, almost 10 years ago:
@fearDnine Indonesia
How can i create a multiple level in 1 world?
By fearDnine, with 2 replies.
Last reply by fearDnine, almost 10 years ago:
ah thankyou!!! it's work on my project :)
Game over starts at same level
By PrincessPeach, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
You can have a GameOver screen.
If <condition = true> DO NOT do the following
By Bassusour, with 10 replies.
Last reply by Bassusour, almost 10 years ago:
Thank you, Super_Hippo. I understand it now :)
Collision detection help
By SP00F3R, with 5 replies.
Last reply by BatteryBot, almost 10 years ago:
nee
I cannot get the simple count to work in the Icebreaker scenario. help
By michaelxhermes, with 1 reply.
Replied to by michaelxhermes, almost 10 years ago:
Sorted now - so not problem but I feel there are no easy to understand examples of how to create this functionality!
How do I add an instance to the World?
By alexus2514, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
<Code Omitted>Where x and y should be replaced by numbers which represent the location where the object should be added.
Make a method last for x time
By Bassusour, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
First, you need to add a timer: <Code Omitted>Then, you can do it like this: <Code Omitted> For the bigger image, you could do this: (Usually it is better to scale down than to scale up. So if you can, use an image of the size of the big image (or even bigger) and scale it down. To do so, use a number below 1 where the 1.3 is right now to scale it up
Switch object's places help please
By abelbarradas, with 1 reply.
Replied to by davmac, almost 10 years ago:
What part(s) are you having trouble with?
Greep Help
By needHelp107, with 3 replies.
Last reply by danpost, almost 10 years ago:
needHelp107 wrote...
if i add a move command they dont stop at the tomato pile and wait for another greep
Okay, so you have code for when they are waiting at a tomato pile and for when they are carrying a tomato. But, that is it -- there is no code for when neither of these two situations exist (not carrying a tomato and not at a tomato pile).
Writing in a file Help please!
By Vellyxenya, with 6 replies.
Last reply by Vellyxenya, almost 10 years ago:
I uploaded a little Scenario showing how to do so
here
.
492
493
494
495
496
497
498
X