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
Worms move
By DPD4AU, with 3 replies.
Last reply by davmac, about 14 years ago:
Just a note: you should prefer "isEmpty()" to "size() != 0", because it is more descriptive, and it can be (much) more efficient - some types of list have to count their elements when you call size().
Error that I don't understand... Yay... Please help.
By Stormtrooper, with 5 replies.
Last reply by Stormtrooper, about 14 years ago:
Thank you! I had tried your first example by using "getWorld()". However not using "getWorld()" was more succesful on how it worked when no zombie was in the world but would error when the actor was removed. But doing both made it work. Thank you davmac
Java(TM) 7u7
By Busch2207, with 6 replies.
Last reply by USBest, about 14 years ago:
I'm not quite sure, but it seems, that the problem solved itself... I haven't done anything and suddenly it works!
Life
By Stephon231, with 2 replies.
Last reply by Gevater_Tod4711, about 14 years ago:
it would be easyer to help you if you could show us the part of the code which is important for this.
Mouse click
By Stephon231, with 6 replies.
Last reply by Gevater_Tod4711, about 14 years ago:
If in the construktor of the world (probably the first method in world: public world() { ...)) stands code like this: super(17, 9, 64) minX would be 0, maxX would be 16, minY would be 0 and maxY would be 8.
I need sound for my project!
By blueberry, with 1 reply.
Replied to by erdelf, about 14 years ago:
freesound
is a good source for sounds.
Store
By Stephon231, with 1 reply.
Replied to by erdelf, about 14 years ago:
make a static variable for the money, and variables for #bombs and #food. Then make a button in the store, with methods that removes money and adds objects. During game, check the variables for the objects if the method for using them is called.
piano scenario constructor
By luna124, with 6 replies.
Last reply by SPower, about 14 years ago:
54 is the distance from the left key to the left of the world. You don't have to change that.
"while" doesn't work
By luna124, with 6 replies.
Last reply by luna124, about 14 years ago:
Oh, sorry, I forgot to restart it. It works now. Sorry.... And thank you
Save a scenario
By blainegray, with 1 reply.
Replied to by blainegray, about 14 years ago:
OK, so I found the problem: saving a scenario is really saving a folder. I went to copy the file and found the file is a folder with lots of supporting information included. What actually gets opened by the editor is probably the source code. All the rest of the material in the folder is available for the exercises. I will save the scenario as an Chapter and exercise number.
creating a powerup
By davemib123, with 1 reply.
Replied to by danpost, about 14 years ago:
To accomplish this, you will need two instance variables: one boolean and one int. The boolean will track whether the powerup is active or not; the int will act as a timer. The code will need to be in the hero's class.
menu buttons?
By GreenfootUser, with 3 replies.
Last reply by SPower, about 14 years ago:
You're welcome :)
Blender oblects in Greenfoot?
By CrazyGamer1122, with 9 replies.
Last reply by MatheMagician, about 14 years ago:
Pull up a blender representation of a cube. If you look at it, it isn't to hard to figure out which part is doing which. After that, just figure out how to use a filereader to read it and then convert it into something useful for your program. The converting might be tricky, since you have to use string manipulators for that and such, but try it. I am actually working on something like that right now (sorry BuilderBoy,I only copy code if I can understand what I need in a minute, or else I start to feel guilty about it.)
I fail to share my scenario.
By abrabant, with 8 replies.
Last reply by abrabant, about 14 years ago:
Thank you.
First-Person Capability?
By CrazyGamer1122, with 18 replies.
Last reply by CrazyGamer1122, about 14 years ago:
MatheMagician wrote...
That's okay. I don't mind people assuming I am a better programmer than I am ;)
:)
938
939
940
941
942
943
944
X