Sign Up, Lost Password
You need to login to take part
By SnowRider04, with 4 replies.
Last reply by SnowRider04, almost 12 years ago:
Chess Game - Movement?
By Cubez, with 13 replies.
Last reply by Transpire, almost 12 years ago:
Um, I'm not too sure about what you're trying to do, but wouldn't it be better to create an abstract class "Piece" with declared GreenfootImage blackImage and whiteImage, and then in the constructor have a blackImage and a whiteImage parameter, this way with superclass constructor chaining you can ensure every Piece will have pictures? Then, whenever the piece is moved, check the color of the square it is moving it to (again, with a superclass method somewhat like this...
By tamigr, with 4 replies.
Last reply by tamigr, almost 12 years ago:
Actor Falls Through World; Cartesian Coordinates
By Transpire, with 23 replies.
Last reply by davmac, almost 12 years ago:
When I say array-like, I mean that it starts with 0.
Ok - the proper name for that is "0-based indexing" (as Java arrays use), though in this case the x/y values aren't really meant to be so much indexes as they are distances from the top left cell. Regardless we could say that the co-ordinates are "0-based".
Um, you mean bounded, right?
Yes, I meant bounded, sorry.
By vittorena, with 1 reply.
Replied to by vittorena, almost 12 years ago:
Oh my god. Of course nothing happens because i didnt set stepsizex and stepsizey stepsizex = xway/steps; stepsizey = yway/steps;
By aphillips, with 3 replies.
Last reply by JL235, almost 12 years ago:
Np, there are also some other resources dotted about greenfoot.org for both beginners and advanced users.
Applet flicker problem (and solution) on Mac
By mik, with 1 reply.
Replied to by MathManiac, almost 12 years ago:
Wow! I wonder if it works for Internet Explorer on windows...
Greenfoot not compiling
By Pink_Piranha, with no replies.
Ooops...Double post somehow... Sorry. :S
Help with this scenario!
By blakeesh, with 7 replies.
Last reply by Builderboy2005, almost 12 years ago:
Yes, a very big difference. By saying <Code Omitted> you are saying "Get the world! do nothing with it. And then try to removeObjects" But only the world is able to remove objects, so you need to do this: <Code Omitted> which says "Get the world, and then *use* the world to remove this object" which is what you want
By Almog, with 2 replies.
Last reply by Almog, almost 12 years ago:
Oh... Thanks This exactlly what I need
By -Tigerkralle-, with 6 replies.
Last reply by -Tigerkralle-, almost 12 years ago:
@kwill1429 Yes, I could... But then i would need 500 or more Wombat-Pictures... And I think, thats too mutch... @mik Thank you very much! :D
Passing on a trait to other objects of the same class
By mahimahi42, with 1 reply.
Replied to by mahimahi42, almost 12 years ago:
Nevermind! I found my problem, and have since fixed it.
Object Hiding a string, Can't acsses a method from World.
By Mattan.H, with 8 replies.
Last reply by Mattan.H, almost 12 years ago:
Oh thanks! i did not know that greenfoot draws everything again every act! that's helpfull! thanks again, Mattan.
Memory error in exported files
By Phazon, with 4 replies.
Last reply by Phazon, almost 12 years ago:
thanks a lot it finally worked :) (tried it before, but, somehow it always returned null, so i droped the idea; was standing in the
"method described here"
. Still wondering why it did that^^ )
High Score Saving
By billybobjoe1223, with 3 replies.
Last reply by mik, almost 12 years ago:
Both replies here have pointed out that you cannot write to a file (or connect to another website) when running in the Gallery. That is true. The reason is security: If any applet running on a web page was able to write to your file system, then just opening a web page could raise hell on your computer. The web page might contain an applet that erases all your files and replaces them with cats on skateboards. To prevent this, applets (and Greenfoot scenarios in the Gallery are applets) are run in a "sandbox" -- i.e. they are forbidden to do anything that could be dangerous. And that incl