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
<indentifier> expected...
By Hutanoi, with 2 replies.
Last reply by Hutanoi, over 12 years ago:
omg, i knew it, such an simple mistake :) thank you very much :D (Y)
SubClass
By GreenF, with no replies.
Can someone please tell me the uses of subclass in greenfoot? I would really appreciate it. Thanks
Find number of actors and add one if there are none.
By Arichman, with 10 replies.
Last reply by Arichman, over 12 years ago:
I have it in the thing with the super() and the prepare(). But now its in the right place, thanks :)
Spawning other entities
By Lolz1600, with no replies.
I am programming the game don't tap the white tile in Greenfoot for school. I managed to get the script to spawn the black tiles and that they become grey, but I can't get the white tiles to become red when you click on them. My idea was to spawn one black tile at random, and in the other spots white ones that move with the black one. I just need some help with the script to make the white tiles spawn in all spots beside the black one. Here is the code I use at the start for the random spawn. <Code Omitted>
Subclass problems
By quakster1, with 5 replies.
Last reply by 11frendash, over 12 years ago:
danpost wrote...
11frendash wrote...
P.S. please let me know if this is the right advice :)
Right idea. Wrong code. If the two classes need to use code in the Hero class then Warrior extends Hero Priest extends Hero ( not 'hero extends warrior' ). Any code both Warrior and Priest need to use can be placed in the Hero class alone.
thanks needed to know, and yeah sorry wrong way around ha
Help with getLocation, it won't work and I can't find how to do it. Help me please?
By Meinersjee, with no replies.
<Code Omitted>
My PacMan Game
By SaxOps1, with 11 replies.
Last reply by SaxOps1, over 12 years ago:
Ok. So, i'm working on connecting wall textures, and the corners are acting weird. They are supposed to rotate but it physically looks like they have moved, but they haven't. Code:
How can I make a timer that will after 5 seconds remove the first bullet
By Nib, with 1 reply.
Replied to by lordhershey, over 12 years ago:
You can set a timer on the bullet itself to remove itself when the time expires like this: <Code Omitted>
Need help to identify an object
By Edanleep, with no replies.
What i want to do is to make a code in the world class to look for an object in the world and then use that answer as a boolean for an if statement
Help I cant start scenarios anymore
By FlicknFlack, with 5 replies.
Last reply by davmac, over 12 years ago:
put security settings to lowest
Do not do that.
and add www.greenfoot.* to your whitelist/greylist.
Do this
instead
.
switch statement
By davemib123, with 4 replies.
Last reply by davemib123, over 12 years ago:
Thanx for the replies.
array?!?!?
By callumbo, with 1 reply.
Replied to by lordhershey, over 12 years ago:
The question is a little too big. Is it the array that you do not know how to make, or it is trying to map this to the screen in some meaningful way?
Problems with numbers symbols
By Kartoffelbrot, with 10 replies.
Last reply by Kartoffelbrot, over 12 years ago:
Nice idea!
Problem uploading the game
By 666Jay666, with 8 replies.
Last reply by 666Jay666, over 12 years ago:
erdelf, you solved the problem! I must have at some point renamed the images folder for some reason. I don't recall doing it, but I have been working on the game for some time and had so many versions something could have went wrong which could have been the reason I done this. I renamed the folder 'images' and it now works fine. Thanks for your help!
How to use intersects(Actor) command?
By K210, with 1 reply.
Replied to by danpost, over 12 years ago:
You cannot use a class in place of an Actor in the intersects method. If you want to look for a actors of class, use a different method, like the 'isTouching' method.
679
680
681
682
683
684
685
X