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
How to convert a int to a string?
By -nic-, with 2 replies.
Last reply by -nic-, over 12 years ago:
thanks a lot
Need help by drawing images
By Gevater_Tod4711, with 6 replies.
Last reply by Gevater_Tod4711, over 12 years ago:
@SPower Ok thank you. I don't think this is very usefull but if its normal I'll try to use other ways.
So I'm trying load a world...
By MidichlorianIce, with 2 replies.
Last reply by MidichlorianIce, over 12 years ago:
This is actually gonna help considerably in the late stages, but I meant I have literal world cells. Each of these segments are representing a different "room" or "land". In the end product it will be much larger with several spaces filled with nothing at all. Hence my use of the text doc as I figured that would be more efficient. My mind tells me that each respective string could be added to a array to be loaded later after the text doc loads this system. I don't know how to do that and still follow the organization of my world however.
actor/counter
By Stephon231, with 6 replies.
Last reply by danpost, over 12 years ago:
'Counter counter' in itself tells the compiler that you have a variable call 'counter' and it is to hold a 'Counter' object. You cannot assign an 'int' or any other type to a variable of 'Counter' type; it must be an instance of the 'Counter' class. You can, however have an 'int' variable within the 'Counter' class. An example of a simple Counter class follows:
Simple toggle for a 'pause menu' help! :D
By Codybean1, with 10 replies.
Last reply by danpost, over 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 years ago:
freesound
is a good source for sounds.
933
934
935
936
937
938
939
X