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
Maximum objects
By havoc131, with 3 replies.
Last reply by Zamoht, about 14 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, about 14 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, about 14 years ago:
ok thx. that worked perfectly.
function Actor.move(int) works curiously
By sasafed, with 7 replies.
Last reply by danpost, about 14 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, about 14 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, about 14 years ago:
Thanks, that worked.
Need some help with my Game
By Azzarrel, with 2 replies.
Last reply by Azzarrel, about 14 years ago:
ty for the fast answer. I'll try it.
Programming books
By Chantal, with 3 replies.
Last reply by Chantal, about 14 years ago:
thank you for replying.it is a great help.=)
Movement help
By Mongoose, with 2 replies.
Last reply by Mongoose, about 14 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, about 14 years ago:
yep - ure right. creating new works.
It should Work...
By LolaLuna, with 11 replies.
Last reply by danpost, about 14 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>
removing enemy life
By davemib123, with 4 replies.
Last reply by davemib123, about 14 years ago:
ah rite :) thanks for the info
making "walls" and detecting impact
By sparrow72, with 14 replies.
Last reply by danpost, about 14 years ago:
@09blackn, Look at the code of my
Barriers and Bars Demo
.
boss movement pattern
By davemib123, with 12 replies.
Last reply by davemib123, about 14 years ago:
yep. I've uploaded the scenario with that in. edit: works great. many thanks for that.
Terminal window
By ms20492, with 4 replies.
Last reply by ms20492, about 14 years ago:
Hmmm...thanks for trying. I'm guessing that JOptionPane input would work fine. Perhaps I'll just use BlueJ for the early system.In input stuff. I think main should be fine...that should be similar between platforms? I've not gone through the tutorials yet, so there might be more to Greenfoot than I understand. Thank you!
949
950
951
952
953
954
955
X