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
Compiler Warnings (Ubuntu)
By Evmorov, with 3 replies.
Last reply by Aikon, over 13 years ago:
Hi, I saw this message today: "unmappable character for encoding UTF8" I run greenfoot on ubuntu 11.04. It was a class that had some strange characters in a comment (this hapened because of changing computers, and i write in portuguese with accents). I fixed it and it executed as usual.
Steps to Time?
By manster2008, with 2 replies.
Last reply by davmac, over 13 years ago:
You can measure the speed yourself using System.currentTimeMillis() - it returns (as a "long") the number of milliseconds since 1 January 1970. You can simply print it to the terminal each act() and then calculate the difference by hand.
On Saving the Image of the World
By danpost, with 6 replies.
Last reply by danpost, over 13 years ago:
Thanks davmac; I appreciate your input. May God shower you with blessings!!
[ASK] about 'RUN/PAUSE' and 'RESET' button
By bangayee, with 4 replies.
Last reply by bangayee, over 13 years ago:
thanks so much
Game Testers
By Lildarkone, with 1 reply.
Replied to by Lildarkone, over 13 years ago:
http://www.greenfootgallery.org/scenarios/3179
Mouse-Dependant Rotation
By Lildarkone, with 1 reply.
Replied to by manster2008, over 13 years ago:
use the following code: <Code Omitted> now in the part where you set the Rotation, you may have to add or subtract 90, and remove the negative or something, because that depends on the rotation of your object.
parameters from greenfoot app via OSC
By Mil, with no replies.
Hi, i am new here, my question is: is it possible to send parameters from greenfoot app over the network for example via OSC?? greetz mil
Testing and Changing Variables from a Collision
By Lildarkone, with 7 replies.
Last reply by Lildarkone, over 13 years ago:
If you could give me any advice on how to improve the scenario, it would be much appreciated! http://www.greenfootgallery.org/scenarios/3081
Mouse Buttons
By Busch2207, with 2 replies.
Last reply by Busch2207, over 13 years ago:
Ahh ok! Sry, I haven't seen this Method. xD Thank you very much!
Path Finding
By -Tigerkralle-, with no replies.
Hi guys! I've got some Insects, that have one Position, they have to move at... How can I programm, that they will walk the shortest (!) way around the other Objects? And that they, if the Point they have to move, is on the Object, will stay there, where they are! Has anyone any idea?
Help with carrying information between worlds
By MrCohen, with 5 replies.
Last reply by davmac, over 13 years ago:
MrCohen, just a few hints: first, in Java, if you use "new" then you're creating an object; otherwise you're just dealing with references (so as mik says, every time you call callStore() a new Store object is created - because callStore creates a new Store). Second, you generally don't need to worry about memory leaks; if there's no way to get to an object via references, Java's garbage collection system will reclaim the memory. Finally, don't worry about efficiency until it becomes a problem :) Creating a new store each time probably isn't going to be a problem, but if you want to avoid it
Names of the Method
By Busch2207, with 4 replies.
Last reply by Busch2207, over 13 years ago:
Ahh Great! Now it works! Thank you very much! :)
On creating images
By danpost, with 7 replies.
Last reply by danpost, over 13 years ago:
My bad! I forgot the 'X' was for exclusive. Thank you, davmac! (I've corrected mine, in case anyone sees it and does not see your correction)
Open web links
By thetoaster, with 2 replies.
Last reply by thetoaster, over 13 years ago:
It was just a link in a scenario to open in firefox etc. but I didn't realise you could put one in the description I'll do that instead thanks
Battling by score?
By 19c3, with 1 reply.
Replied to by DonaldDuck, over 13 years ago:
Your player should keep score of it's own points respectively as it does whatever to gain points. Just have a variable for the players points in the player class, and the world class, and in the act method, send the variable across. <Code Omitted> Use a simple if statement to find which score is bigger, and allow that player to win.
1045
1046
1047
1048
1049
1050
1051
X