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
magikarp pokegameing
By magikarp2010, with no replies.
<Code Omitted>
magikarp kool code pokemopn
By magikarp2010, with no replies.
<Code Omitted>
How to get and delete an object that you click on?
By RoverKnight, with 2 replies.
Last reply by RoverKnight, about 5 years ago:
I implemented the code you wrote in the 2nd insert, and it works now. Thank you! I did put my original code in the cell covers act method, but forgot that I didn't need to then check which cell got clicked on... :,)
How i can disable auto-compile in greenfoot??? >.<
By leuveg, with 1 reply.
Replied to by rocket770, about 5 years ago:
Never had that issue on any school or personal computer. Are the computers actually at least decent? Is there an error with your code? I know sometimes when greenfoot spits out too many errors in the console it can crash. Anyway, saw
this
Enemies using walls to bounce shots
By Talrasha, with 5 replies.
Last reply by danpost, about 5 years ago:
Hull wrote...
Your code is a good, comprehensible implementation of the P(wall(x)|y) formula.
Maybe, but I found that bouncing off opposite side of wall was not being caught (as I first thought) with line 9. Better is: <Code Omitted>
What methods can a floating point/double be used in?
By CreatorMoon, with 4 replies.
Last reply by CreatorMoon, about 5 years ago:
Ah. My bad.
Check if objects of an actor are available
By meltHam, with 4 replies.
Last reply by meltHam, about 5 years ago:
<Code Omitted>Here's how I put that into my code and it works, thank you!
Actor should not spawn on top or close to another actor
By hernry2812, with 11 replies.
Last reply by hernry2812, about 5 years ago:
Doch, ist es ;) Aber so wie das aussieht muss ich es anscheinend mit einer Quelle angeben.
Game lagging when touching a certain object
By Gbasire, with 11 replies.
Last reply by Gbasire, about 5 years ago:
You're right, so I don't know what to do right now. Adding an object seems to make the game lag for some reason.
Calling a Bar method from another actor class
By hernry2812, with 9 replies.
Last reply by danpost, about 5 years ago:
You color list is not as I have given above. Should be red, red and yellow (for 0, 1, and 2, respectively). And if it changes color at all and the size of the bar does not change, I can only presume you made unauthorized changes to the
Bar
class.
I cant run my game in JAVA or HTML
By Danyboy910, with 1 reply.
Replied to by danpost, about 5 years ago:
Danyboy910 wrote...
When I try to export my game in java and i get the .jar file, it says
"Error: A JNI errar has ocurred, please check your installation and try again".
When I export it to this website, it says
"There is no HTML 5 translation of this scenario available."
,
Main problem is conversion failure due to use of the
javax.swing
package, You must not use it.
Issues making cookie clicker
By superDumb, with 4 replies.
Last reply by superDumb, about 5 years ago:
Answer to my problem : Things are put down in layers I apparently had my cookie behind an invisible wall that was from a png I had put in just put my cookie as the last object added into the game and it works as intended.
Carrying a variable value over worlds?
By CreatorMoon, with 4 replies.
Last reply by CreatorMoon, about 5 years ago:
I've got it working. Thanks for the help guys!
Can't stop music from the World itself or an actor
By hernry2812, with 2 replies.
Last reply by danpost, about 5 years ago:
Remove the declaring type "
GreenfootSound
" from the beginning of line 35 so you do not create a local variable.
Best way to use a text displayer with time ?
By Gbasire, with 2 replies.
Last reply by danpost, about 5 years ago:
Put
String
objects in an array and introduce an
int
index pointer. Run timer from 100 to 0 multiple times. Use image of actor to display text: To make class reusable, bring text lines in by way of a parameter of the constructor. The constructor can also initialize the image to first line of text. Like this:
77
78
79
80
81
82
83
X