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
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
Tile Changing Color
By anonymousse, with 46 replies.
Last reply by danpost, over 11 years ago:
I just missed an open parenthesis in line 4. <Code Omitted>I am lost as to why line 3 in there.
If my actor is within this certain area display gameover
By kayuhnjayuhn, with 10 replies.
Last reply by kayuhnjayuhn, over 11 years ago:
Awesome! Worked great! Thanks!
App Store
By jmdreyer, with 3 replies.
Last reply by lordhershey, over 11 years ago:
iphones use Objective C and requires you to pay 99 dollars a year to develop and deploy to iphone. If you slip in the fee payment your app will disappear from itunes. You cannot deploy binaries to your own device unless you either pay the fee, or jail break the device. There may be thing out there to help did a goolge search for
Java to iphone
and got that there are also some kits that have their own proprietary schemes that will deploy to both iphone and android like
Stencyl
and
Splitting Asteroids Problem?
By Kamacuras, with 1 reply.
Replied to by davmac, over 11 years ago:
Your question is vague. Like any task, you need to break it down into small steps, and then express those steps using the programming language.
My thoughts for this mechanic is that when the
asteroid is intercepted by the asteroid
Is this what you really meant to say? How about you start by describing what you want to happen, in numbered steps? (And then explain which of these steps you are unable to write code for!)
681
682
683
684
685
686
687
X