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
Simple toggle for a 'pause menu' help! :D
By Codybean1, with 10 replies.
Last reply by danpost, over 11 years ago:
See lines 27 and 28 of my previous post in this discussion. Also, you may want to check out
Language Basics
in the Java Tutorials.
SpriteSheets
By Razzo, with 1 reply.
Replied to by fireandlce, over 11 years ago:
I found this software not too long ago: aseprite.org It looks pretty good. You can save the animation as many different filetypes like gif or png. Png is cool because it'll keep the opacity and it saves a separate image for each frame so if you know how to switch out the images to get the animation going then there ya go. Otherwise I've been trying to find out how to even do animation in greenfoot. Oh, and the software is free.
skyrim
By 10hydejoe, with 4 replies.
Last reply by SPower, over 11 years ago:
Then you shouldn't ask it if it has nothing to do with PROGRAMMING (like your subject is) or greenfoot.
Make objects bigger
By Henrik00, with 2 replies.
Last reply by Henrik00, over 11 years ago:
Gevater_Tod4711 wrote...
I don't know a scenario but if you want to change the size of an image use scale(int width, int height).
Thank you, it helped a lot!
Objects returned by getObjects don't have methods/variables?
By thundercracker, with 3 replies.
Last reply by danpost, over 11 years ago:
Here is what was happening. 'getObjects(PowerSource.class)' returns a list of objects
of type 'Object'
. Objects of that type cannot use 'Actor' class methods or variables. A simple way without having to import the list class <Code Omitted> Hope this makes sense.
Worms move
By DPD4AU, with 3 replies.
Last reply by davmac, over 11 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, over 11 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, over 11 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, over 11 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, over 11 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, over 11 years ago:
freesound
is a good source for sounds.
Store
By Stephon231, with 1 reply.
Replied to by erdelf, over 11 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, over 11 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, over 11 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, over 11 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.
925
926
927
928
929
930
931
X