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
I want a score counter!
By HBMC, with 1 reply.
Replied to by erdelf, over 12 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 12 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 12 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 12 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 12 years ago:
Works great thanks again!
canSee method not working
By GP2, with 3 replies.
Last reply by GP2, over 12 years ago:
Thank you so much! the code worked perfectly
Tile Changing Color
By anonymousse, with 46 replies.
Last reply by danpost, over 12 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 12 years ago:
Awesome! Worked great! Thanks!
App Store
By jmdreyer, with 3 replies.
Last reply by lordhershey, over 12 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 12 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!)
Referencing a non-static variable in multiple world scenario
By redandblue, with 4 replies.
Last reply by davmac, over 12 years ago:
In the code you post, where is 'fruit' declared and initialised? Why do you call 'getType()' and ignore what it returns? Perhaps you meant to declare a local variable called 'fruit' and assign to it depending on the world type, something like:
Making objects move different directions, and different speeds
By kayuhnjayuhn, with 13 replies.
Last reply by kayuhnjayuhn, over 12 years ago:
Okay that first one worked, thanks!
Sound Not Working
By mandyg233, with 23 replies.
Last reply by lordhershey, over 12 years ago:
--
Changing text
By mandyg233, with 16 replies.
Last reply by danpost, over 12 years ago:
Usually, the heap space error will occur when you are creating an abundance of actors or objects. Check your logic in your act methods and your loops.
Objects getting stuck at walls and edges?
By Tommy99, with 4 replies.
Last reply by danpost, over 12 years ago:
You may get some weird facing actions with the way the movement is coded. You could end up moving one way while facing another if two direction keys are pressed simultaneously. Putting 'else's between the different direction checks may help; but then, if the first direction is not a valid one, the second one will not be checked..\ I would do the facing part first, before the moving part.
683
684
685
686
687
688
689
X