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
adding multiple rounds
By AAA355, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
In world Background: <Code Omitted>
getX not working.
By Alex12, with 7 replies.
Last reply by danpost, almost 9 years ago:
Alex12 wrote...
Thank you very much. Never considered it could hang together with the speed. Thanks :) Could i try to check for it to be under f.e. 15?
You could check it to under any value; but to be equal to a value, you need to be more careful. You could use 2, 5, 8, 11, 14, 17, or 20.
import of jradiobutton and checkboxes
By divinity, with 6 replies.
Last reply by danpost, almost 9 years ago:
divinity wrote...
the bread is the type of bread the user would order whether it is parmaesan bread, honey oats, wheat, teriyaki adn I was trying to add it using the add methods.
That would be a very general description of the bread which has nothing to do with how you are trying to code it. I mean, I now how to make a submarine sandwich and how to order one at Subway. My question was, basically, how (and where) did you declare the variable 'bread' in your code?
Global variable
By alinasomcutean, with 3 replies.
Last reply by alinasomcutean, almost 9 years ago:
I need it because i need to move a girl the number of boxes which the die showed. And i want to do this the computer, not the person who plays. And it is repeted until you arrive at 29 from 1. Did you understand?
Help with removing Actors of the same class
By Asiantree, with 21 replies.
Last reply by Super_Hippo, almost 9 years ago:
Why can't I jump on a block that created?
By Rex553, with 12 replies.
Last reply by Rex553, almost 9 years ago:
Thank you so much!
How to make the gameover screen to appear
By jhc0327, with 10 replies.
Last reply by danpost, almost 9 years ago:
I think you need to simplify your code a bit. Using the 'playSound' method, for one thing, does not give you any control over the sound (it will play through without you being able to stop it). You should be creating GreenfootSound objects at the time you will be playing them and assign them to a specific field until a guess is made. A simple act method might be something like this:
images
By adlafforest, with 30 replies.
Last reply by Nosson1459, almost 9 years ago:
Super_Hippo wrote...
@Nosson: setPaintOrder will not work I believe because the imageActor is just an Actor, not a new class, so you can't set it as a parameter for the method.
I forgot that the class would be Actor.class.
Anyways, I don't think there will be anything which could hide the actor.
Other Actors.
Object reference
By LeonV, with 17 replies.
Last reply by LeonV, almost 9 years ago:
Thank you
java.lang.NullPointerException
By Alex12, with 4 replies.
Last reply by Alex12, almost 9 years ago:
Thank you for your help anyways. Have a good one.
Fullscreen Droidfoot All Device
By iban, with no replies.
help me, Do you know how make scenario fullscreen on all device with droidfoot??
how to access variable from intersecting object
By alfonsc, with 5 replies.
Last reply by alfonsc, almost 9 years ago:
Got it! Thanks for the help!
Whats the problem?
By Nokhaido, with 1 reply.
Replied to by danpost, almost 9 years ago:
Nokhaido wrote...
But in this line: MouseInfo button == maus.getButton(); there is a ; expected between button and == Whats the problem with this?
Multiple issues with the line. First off, you use a single equal sign to assign a value to a variable (the double equal sign is for comparing for equality). Secondly, the 'getButton' method returns an 'int' value; but, you are attempting to assign it to a variable that you declare as type MouseInfo (should be 'int button = maus.getButton();'.
I need help, can't find method for Get.World
By EsperLevi, with 1 reply.
Replied to by danpost, almost 9 years ago:
The 'orderOutForPizza' method should be in your MyCat class -- not in the CatWorld class.
Please Help!!
By jhc0327, with 1 reply.
Replied to by Super_Hippo, almost 9 years ago:
Generally, you should describe your problem instead of saying "it is not working". What I can tell you from your code is that 1. line 3 should be outside the method 2. line 29 will never be executed because the condition in line 23 is the same as in 28
367
368
369
370
371
372
373
X