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
sliding
By Jeph, with 7 replies.
Last reply by danpost, over 11 years ago:
I said a boolean field -- not a boolean method.
how do you solve this using a loop or "if" statements ?
By aaronlee3388, with 8 replies.
Last reply by aaronlee3388, over 11 years ago:
Thanks!
I have a background music player for you to use
By JeppDev, with no replies.
Hello, anyone lucky enough to read this, I have made a project, that anyone can download if you need a quick and effective back ground music, or just music player in general.
http://www.greenfoot.org/scenarios/14105
How do I stop music initialized in the super class of a world in one of the worlds subclasses
By christopherweiland, with 2 replies.
Last reply by danpost, over 11 years ago:
You may want to check out the java tutorials starting with the page on
Classes
. Of particular interest, might the the page called
Understanding Class Members
.
How do you use flags??
By vampire-wannabe, with 5 replies.
Last reply by vampire-wannabe, over 11 years ago:
@davmac the problem is I'm stupid and I need to set a flag at the tomato so one greep stays there while he helps the rest load the tomato onto their backs. I don't know how to do this..
Help Me Understand Arrays
By plant, with 3 replies.
Last reply by danpost, over 11 years ago:
Before trying to explain what an array of Tile objects (see line 4 of the Tiles class) is, let us start with something a little more basic (since you know what int and boolean are). An array is used to essentially store in memory more than one value (usually) using the same field name. The values stored are indexed (starting at zero) so that any value (or element) within the array can be directly accessed. These elements can be of one of the primitive types (int, double, boolean, char, etc.) or of a reference type (String, Font, Color, Tile, etc). Once an array is created, its size is im
Adding same Objects that act seperatly
By xWanna, with 15 replies.
Last reply by danpost, over 11 years ago:
xWanna wrote...
How to do it? << get number of intersectors minus line of sight objects (count) >> I think with a list, but can you tell me?
You will be getting a List object from the return of 'getIntersectingObjects', at any rate. However, you could determine the count this way: <Code Omitted>where the final count will be two plus the number of objects that actually interfere with the line of sight. If you have other objects that should not be considered as ones that interfere wi
Trouble Calculating Reflection Angles of Ball and Tilted Paddle
By polar568, with 4 replies.
Last reply by polar568, over 11 years ago:
Thank you for the help! That solves my problem!
Need help creating shooting command
By emadrid3, with 2 replies.
Last reply by emadrid3, over 11 years ago:
Hey I got it down. I used a firing method similar to that of Greenfoot Space Invaders. From there I used the animal class to make the shell eat the bomb then a destroy command.
How do you make an another object come out of a player?
By _E_X_B_R_Arjay, with 5 replies.
Last reply by _E_X_B_R_Arjay, over 11 years ago:
Thx so much danpost! you really help a lot. i finished my game now thx to you.
Problem with implementation of scrolling world and fullscreen
By lighoa, with 14 replies.
Last reply by danpost, over 11 years ago:
lighoa wrote...
1. What changes did you make to the ModWorld and ModActor classes?
Like I said, I had to totally re-write those classes; I ended up with this for the super world class ('ModWorld' is now named 'FullScreen'):
returning strings and setting them as strings in other classes?
By h123n, with 1 reply.
Replied to by h123n, over 11 years ago:
Never mind, I had some help and it's done now, thanks to anyone reading this.
Identifier expected error - No idea why
By nandr31, with 1 reply.
Replied to by danpost, over 11 years ago:
Compare lines 3 and 4 of both code posts. The second set of lines has access modifiers and either a type or a name (I cannot be sure which); but the lines are missing one of them.
Greenfoot Scenario too Big to Upload
By Seriamus, with 2 replies.
Last reply by Seriamus, over 11 years ago:
Oh, wow, you were right. The music was unnecessary anyways, so I just removed it -- cleared an amazing amount of room, and was able to be published. Thank you!
Describe a situtation where the canMove() method would result in a false?
By spazonred1998, with 3 replies.
Last reply by danpost, over 11 years ago:
Where did you get the 'canMove' method? what is its code? The Actor class provided by greenfoot does not contain a 'canMove' method. Without seeing it code, it is impossible to say what it does or what it will do in any situation. The only other thing we could do is maybe suggest that you just test it out yourself to see what it does.
559
560
561
562
563
564
565
X