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
String into int.
By gusbus123, with 4 replies.
Last reply by trash1000, over 13 years ago:
An easier way would be to use the Integer class of java: <Code Omitted>It's very important that the string only contains numeric characters, otherwise the method will throw an NumberFormatException: http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Integer.html#parseInt%28java.lang.String%29
Highscores using userinfo (Asked before)
By Zamoht, with 25 replies.
Last reply by Zamoht, over 13 years ago:
Thanks. I hope you upload the information, because I have no idea how to make the Array.
Random Movement
By WatchPatronus, with 4 replies.
Last reply by WatchPatronus, over 13 years ago:
danpost wrote...
Change your 'act' method to this: <Code Omitted>
Thanks very much :-)
Closing window
By GregC246, with 19 replies.
Last reply by danpost, over 13 years ago:
I knew there was something akin to 'application.close()', but I could not remember what it was! But now that I see it again... dooh :{
Maximum objects
By havoc131, with 3 replies.
Last reply by Zamoht, over 13 years ago:
For your next problem you could make a static int for your "Player" class: "static int lobstersEaten;" Then add "lobstersEaten++;" to your eat method. Now you could have an integer in your world class, which is set to 3 from the start: "public int something = 3". Here public is important because you want to change the something variable from another class. So in your "Player" class act method add something like: <Code Omitted> And change "if(Greenfoot.getRandomN
Two sound queries
By davemib123, with 6 replies.
Last reply by DonaldDuck, over 13 years ago:
I think what SPower is saying is that you could put the missileSound in the HeroMissile class and in the addedToWorld method make the sound play. That way the sound plays 100% of the time when a bullet is fired.
Calling methods in one actor through another actor. (not sub classes).
By gusbus123, with 6 replies.
Last reply by gusbus123, over 13 years ago:
ok thx. that worked perfectly.
function Actor.move(int) works curiously
By sasafed, with 7 replies.
Last reply by danpost, over 13 years ago:
I tried that very search with no results, but I KNEW that it was there somewhere. So, I did a manual search (browse through).
UserInfo level select
By steved, with 7 replies.
Last reply by steved, over 13 years ago:
Thanks guys looks like its working now. Ill probably be done with the update in a day or two. By the way the game this is for is platforms of meh.
Getting dx and dy from rotation and speed.
By kiarocks, with 8 replies.
Last reply by kiarocks, over 13 years ago:
Thanks, that worked.
Need some help with my Game
By Azzarrel, with 2 replies.
Last reply by Azzarrel, over 13 years ago:
ty for the fast answer. I'll try it.
Programming books
By Chantal, with 3 replies.
Last reply by Chantal, over 13 years ago:
thank you for replying.it is a great help.=)
Movement help
By Mongoose, with 2 replies.
Last reply by Mongoose, over 13 years ago:
Thank you sir. I'm going to keep working hard!
Using the inbuilt scoreboard
By davemib123, with 6 replies.
Last reply by davemib123, over 13 years ago:
yep - ure right. creating new works.
It should Work...
By LolaLuna, with 11 replies.
Last reply by danpost, over 13 years ago:
If you do not mind the speed at level 3 being 66, instead of 65, you could code this: <Code Omitted>Also, your movement methods could be simplified like the one below: <Code Omitted>
947
948
949
950
951
952
953
X