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
Embed Greenfoot Program into my new created website
By Bolla13, with no replies.
Is it somehow possible (I hope it is :-)), that I embed my Greenfoot program into a self-created website, like you are doing here. Is there a manual for this. Thanks for your help
how to check for a value in array
By Kaggs, with 4 replies.
Last reply by Kaggs, almost 6 years ago:
<Code Omitted>it worked just did a shuffle methods and now i get random number from 0-9
Danpost plz help me in blue j
By Roshan123, with 3 replies.
Last reply by danpost, almost 6 years ago:
There are some control codes below 32 that will either not print or perform their intended operations (BS=8, LF=10 and CR=13, to name a few). There may be one more that lies between 32 and 100. There are many above 256 that are either unassigned or will display as a small unfilled box. I do not think you can do anything about how they display in the greenfoot terminal.
little-crab scenario, changing the crabs image
By Bambus, with 2 replies.
Last reply by Bambus, almost 6 years ago:
Thanks. It wokred (:
Background sound fades when another sound is played
By Libraoct7, with no replies.
I have created a simple game in which an object (boy) eats all the cherries avoiding snakes and bombs. When the game starts, a background sound is played. When the boy eats a cherry, a pop sound is played. But when the pop sound is played, the background music is faded where you can't even hear it until about 7 seconds later that would the background sound is heard. Please help me to fix this problem. This is my MyWorld class: <Code Omitted>This is the Cherries class: <Code Omitted> And this the boy class: <Code Omitted>
Hi I am stuck in this scenario
By Sauravbasyalking12, with 3 replies.
Last reply by danpost, almost 6 years ago:
Sauravbasyalking12 wrote...
I need to change the code instead of greenfoot.stop in instead of game ending << Code Omitted >>
Drop it and ask if any crabs are left in the world.
NullPointerException with getObjects()
By nebuto, with 4 replies.
Last reply by nebuto, almost 6 years ago:
Perfect! Got it. Thanks a lot. And after trying to write a homing calculation for my Missile with a lot of Analysis/Trigonometrie, i finally found the turnTowards-Method :-)
crab tutorial incompatible class
By genek, with 1 reply.
Replied to by genek, almost 6 years ago:
nevermind wrong method call it should be worm = getOneObjectAtOffset(0, 0, Worm.class);
Making an actor follow a set route instead of transporting to final location
By adrian.trimarchi, with 11 replies.
Last reply by RcCookie, almost 6 years ago:
danpost wrote...
The code you have given IS a hard-coding; just in a more advanced style.
Well...
No Compile all and No Animal Class above Crab class
By MercedesGroot, with 2 replies.
Last reply by MercedesGroot, almost 6 years ago:
Thank you very much!
About this answers
By Sauravbasyalking12, with 1 reply.
Replied to by danpost, almost 6 years ago:
It would not be right to just give answers to assignments or homework questions here.
Coloring showText()
By franno, with 2 replies.
Last reply by franno, almost 6 years ago:
danpost wrote...
franno wrote...
how do I color the text shown with showText() ?
You cannot change how showText displays text at all.
Also, the stroke is quite heavy, and I don't know how to fix that either
Please refer to my
Value Display Tutorial
scenario.
Fair enough, Thanks! I'll look into it :D
my string name isn't working
By ninjapuffin, with 4 replies.
Last reply by ninjapuffin, almost 6 years ago:
thanks it worked
I Require Assitance
By FrostyBoi, with 1 reply.
Replied to by danpost, almost 6 years ago:
FrostyBoi wrote...
Hello I am new to Greenfoot and am currently working on a TD project the problem is that i want a tower to shoot for a certain amount of time then pause then start again Plz Anyone
Add an int field as a timer. Increment to a number equal to acts required for one cycle of shooting and not shooting, then reset to zero. With lower values for shooting, if in that range and divisible by some number, say 60 for shooting each second, fire. So, let us say you want to shoot 4 shots in 4 seconds (one per second), then not shot for 6 seconds, repeating. Assuming normal run
A method that is called whenever an actor get's removed
By RcCookie, with 6 replies.
Last reply by danpost, almost 6 years ago:
RcCookie wrote...
Yeah, but I'd like to have the AdvancedActor and the collider be like a standalone, without having to edit the world
Okay. How about putting the following in the
Collider
class: <Code Omitted>
113
114
115
116
117
118
119
X