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
How do I randomize placement of answers?
By ConorK, with 1 reply.
Replied to by danpost, almost 5 years ago:
ConorK wrote...
I am making a math game where I need to randomize the placement of the answers on a multiple choice. I don't want all the correct answers to be on a single box, and I want to create the problems and answers randomly.
Save true answer object in field. Shuffle answers and display them. Compare picked object with saved object to check for correctness.
How do I make an actor navigate around obstacles?
By johnLearnsToCode, with 5 replies.
Last reply by danpost, almost 5 years ago:
johnLearnsToCode wrote...
danpost wrote...
If you do horizontal and vertical movement separately
Is there a better way to approach this problem?
Not really. It is the best way to allow movement along the walls of the house. If not done separately, you would need to test each way anyway after a collision to see which axis of movement caused the collision. There is no guess work if you do them separately to begin with.
mmm help me With Java.lang.PointerExeception
By mariq_rasyid29, with 2 replies.
Last reply by mariq_rasyid29, almost 5 years ago:
all work, thx sir
Circular Progress Bar
By ronald, with 16 replies.
Last reply by ronald, almost 5 years ago:
i do not think implement setRotation
Let an actor do different things in other worlds
By liekevaniep01, with 3 replies.
Last reply by liekevaniep01, almost 5 years ago:
Thanks! it works
How to make my enemy go towards my player
By ThiagoPorto, with 2 replies.
Last reply by danpost, almost 5 years ago:
ThiagoPorto wrote...
I can't solve the problem on line 48
Replace the line with: <Code Omitted>If when
speed
is reduced and movement does not look right, consider implementing.a class that provides smooth movement.
Get Location
By JuliusF03, with 2 replies.
Last reply by danpost, almost 5 years ago:
More simply might be: <Code Omitted>or <Code Omitted>Swap rotations ("90" and "270") if needed.
My Project freezes if I click on "run"...
By InfernoUser, with 1 reply.
Replied to by danpost, almost 5 years ago:
InfernoUser wrote...
So my project basically freezes every time I want to run it. Can somebody help me out? If needed ask for codes.
Start with
World
subclass codes.
help i keep getting this msg
By JCD, with 2 replies.
Last reply by danpost, almost 5 years ago:
Start by removing lines 15 thru 18. You will most probably get different errors that will lead you toward fixing it. Oh, and change line 52 to: <Code Omitted>(that is one you would have been led to)
How to change world using inheritance?
By Risen, with 10 replies.
Last reply by rocket770, almost 5 years ago:
I really don't understand why you need a new method to change the world, it makes no difference and if anything, having an extra layer just makes in inconvenient if anything since it is causing problems? As for the sound, create a sound object where you can then pause or stop it before you exit the world. <Code Omitted> Start the sound using sound.play(); then you may pause it or stop it using <Code Omitted> or <Code Omitted>
reset help
By JCD, with 1 reply.
Replied to by danpost, almost 5 years ago:
JCD wrote...
i am trying to make a program but everytime that you play it and stop the simulation you neeed to reset it, is there a way to make it so i automatically resets on game start.
Show codes. Cannot fix w/o them.
Help with volume bar
By Sfven, with 2 replies.
Last reply by danpost, almost 5 years ago:
The
mouseClicked
method requires an
Actor
object (or
null
), not a class. You could try this: <Code Omitted>
whats the problem, boolean cannot be converted to int
By JCD, with 2 replies.
Last reply by rocket770, almost 5 years ago:
You're declaring onGround as an integer. Replace line 2 with<Code Omitted>
Health Bar
By dan.0071, with 4 replies.
Last reply by dan.0071, almost 5 years ago:
All sorted now thank you :)
How can I install Greenfoot on an IPad (Apple)?
By Meierarend, with 6 replies.
Last reply by RcCookie, almost 5 years ago:
For a school I don’t think this is gonna happen. PCs are the only option here
83
84
85
86
87
88
89
X