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
Cannot convert to HTML5: Error: Running TeaVM
By Ben_Jiang, with 2 replies.
Last reply by Ben_Jiang, over 2 years ago:
Thanks! I'll try and see how it goes.
Clara world
By killer, with 1 reply.
Replied to by danpost, over 2 years ago:
killer wrote...
i'm looking help for clara world Baking cake practical.
Please elaborate
in detail
and show any attempted codes.
Wait function
By HAHAHAHAA, with 1 reply.
Replied to by danpost, over 2 years ago:
HAHAHAHAA wrote...
I have a game, where if I click the up key, I want the actor to stop moving, hen after one one second, I want the whole game to stop.
Do not use the
wait
method within greenfoot. It is a thread operation and may mess up the execution of greenfoot itself. Use: <Code Omitted>
I need help with a code on how I can make an actor (in this case a zombie) fall behind me when I get close to him and when I walk away he doesn't chase me
By ELquenosabena, with 8 replies.
Last reply by ELquenosabena, over 2 years ago:
Thanks for everything
l need help
By track-hunt79, with 5 replies.
Last reply by danpost, over 2 years ago:
track-hunt79 wrote...
oh I understand and excuse me again but I'm new to programming and the code you sent me is placed in the obj class?
No. First part in class of zombie and second part in class of character that picks up coin. "obj" is just a dummy variable name to hold a zombie object.
Shop is not working
By ADAM68801, with 1 reply.
Replied to by danpost, over 2 years ago:
ADAM68801 wrote...
Hi, I have a shop in my game, and I want to click on a actor in shop whitch I want to play with, and then the actor shoud change in the game.
Either use a parameter in your game world constructor to pass which character was chosen or create the world and add the character before setting that world active. I am presuming that the character is not being changed mid-game.
Can Someone help me with this bug?
By Kingrko23, with 1 reply.
Replied to by Spock47, over 2 years ago:
I don't understand what your source code should do, but I can tell that the expression <Code Omitted> is wrong. (and the expression <Code Omitted> can be simplified to <Code Omitted>, which implies that it probably is not what you want it to be, too.) To understand your question, the following infos would be helpful: 1. What is variable "input"? 2. What is the meaning of variable "Scanner.lastNum"? 3. What does "is in the correct order" mean for a scanner? (And what is a scanner?) 4. Presumably, seeing t
How To Import Music?
By Karmatic, with 16 replies.
Last reply by Karmatic, over 2 years ago:
OH MY GOD, My teacher taught me what to do, thank you both for your help and patience, "SHMC.mp3" was a .wav file, so it needed to be written as "SHMC.mp3.wav" Again, thank you for all your help here, and have a wonderful day.
super Mario powerup
By Beebon, with 15 replies.
Last reply by Roshan123, over 2 years ago:
@Spock47, Thanks for it. I really appreciate a lot for the whole explanation
isAtEdge not working
By ADAM68801, with 3 replies.
Last reply by ADAM68801, over 2 years ago:
Thanks, it worked
Hello and thank you that you take time to help.
By Pasce, with 1 reply.
Replied to by Super_Hippo, over 2 years ago:
Do you ever set the ‘attachedActor’ to anything?
Changing actors
By ADAM68801, with 7 replies.
Last reply by Spock47, over 2 years ago:
The if-statements that replace the buy-icon with the equip-icon are currently in the constructor of class Shop. That means, that they are only executed when the new Shop gets created. But you want them to be checked continuously while the shop is shown. The method that is executed continuously as long as the object is shown, is the act-method. So, if you move these statements into the act method, it should work. (Note that you will have to adjust the needed variables from being defined in the constructor to be private attributes of the class, so that the if-statement in the act method ca
Changing variable value
By ADAM68801, with 1 reply.
Replied to by Super_Hippo, over 2 years ago:
<Code Omitted> If the actor is in the world, you can then do this to set it to 100 for example. <Code Omitted>
how do u make the bullet disappear after hitting the enemy or the end of the world
By Beebon, with 2 replies.
Last reply by Beebon, over 2 years ago:
thx
HELLO PLS HELP ME
By Beebon, with 10 replies.
Last reply by Beebon, over 2 years ago:
thakns u
34
35
36
37
38
39
40
X