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 to show score with number images?
By rohwedder, with 3 replies.
Last reply by rohwedder, over 11 years ago:
Thank you I got it to work with your solution... It's much appreciated :)
Problem left en right touch
By Youssef, with 1 reply.
Replied to by danpost, over 11 years ago:
Youssef wrote...
how can I get it done to an object when I touch the left of the right, or vice versa?
This is vague and no attempted code was supplied. No help could possibly come from this.
getOneintersectingObject footballgame
By Youssef, with 1 reply.
Replied to by danpost, over 11 years ago:
How are 'x' and 'y' declared? and, What is the exact (copy/paste) error message you are getting?
Add one to a variable from another class.
By Crystic, with 1 reply.
Replied to by davmac, over 11 years ago:
GameWorld is a class; you need to access the variable in the actual instance of the class - the world
object
. <Code Omitted>
Move method isn't working
By mandyg233, with 5 replies.
Last reply by mandyg233, over 11 years ago:
That works!
Getting a turret to rotate to the players position.
By craigd04, with 1 reply.
Replied to by trimil, over 11 years ago:
Try this:
Greenfoot: Shooting (Part 1 of 2)
getNeighbours or getOneObjectAtOffset?
By larg5847, with 9 replies.
Last reply by larg5847, over 11 years ago:
PD: isn't my final method, i only experiment if i could get (object).soy();
How to Spawn a New Object that is Away from You?
By Jesus_LOVES_You, with 3 replies.
Last reply by danpost, over 11 years ago:
Answers: (1) Let me explain it this way -- assume your Fish was in the middle square of a Tic-Tac-Toe grid and you want the spawning of Badfish to occur in any of the other grid-squares. If you did what you suggested by 'combining the actions', the spawns will only occur in the corner squares (restricted BOTH ways instead of restricted in only ONE of the two ways). (2) The '%' symbol is the arithmetic 'modulus' operator. It returns the remainder of a division operation. This will produce the following for any 'int' division. For int division using the formula 'A/B=CrD : A/B=C
Changing the origin of shoot to something a little higher.
By FrostRyan, with 2 replies.
Last reply by FrostRyan, over 11 years ago:
Lol, wtf I tried it before and didn't work, but now works perfectly, thanks :) got it now.
I want a score counter!
By HBMC, with 1 reply.
Replied to by erdelf, over 11 years ago:
in your message class in line 8, you are trying to get all the objects of the bogar.class.pont I am not even quite sure what that is doing, but i think it should give you an error because u gave no class change the line to <Code Omitted>
Why isn't this working?
By mandyg233, with 4 replies.
Last reply by danpost, over 11 years ago:
mandyg233 wrote...
if (getX() == 1800) never seems to happen
With a move speed of '15', chances are quite good, in fact, very strong, that a move will take the actor from under the 1800 mark to over the 1800 mark without actually landing at that mark.
Saving color to make new background
By cobarr, with 10 replies.
Last reply by danpost, over 11 years ago:
cobarr wrote...
Do you mind explaining to me why you used "public static final"? What does "final" do?
Declaring the field as 'final' prevents any changes in its value -- the field holds, in essence, a constant.
Creating and deleting objects (or hiding them and making them visible again)
By mandyg233, with 10 replies.
Last reply by danpost, over 11 years ago:
<Code Omitted> will remove the boat; and <Code Omitted> will add a new one back into the world. If you want to have the same boat added back into the world later, then
I am trying to rotate an object before the program actually starts up
By kayuhnjayuhn, with 4 replies.
Last reply by kayuhnjayuhn, over 11 years ago:
Works great thanks again!
canSee method not working
By GP2, with 3 replies.
Last reply by GP2, over 11 years ago:
Thank you so much! the code worked perfectly
680
681
682
683
684
685
686
X