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 do I make actor disappear after touching another actor.
By ExistingProof, with 1 reply.
Replied to by danpost, over 4 years ago:
The only
Actor
class method that can remove an object from the world is the
removeTouching(Class)
method.
How do I make actors randomly generated on the screen infinitely?
By ExistingProof, with 1 reply.
Replied to by danpost, over 4 years ago:
Add
Cloud
objects from an
act
method in your
MyWorld
class (it is a
World
method that is repeatedly called by greenfoot while your scenario is running).
Test
By User7881818, with 3 replies.
Last reply by User7881818, over 4 years ago:
Vraag 3 Wolf class: import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class wolf here. * * @author (your name) * @version (a version number or a date) */ public class wolf extends LittleRedCap { private int marge=90; private int randomWalk = 5; public void act() { move(10); turnAtEdge(); walkRandom(); eatLittleRedCap(); } /** * turns the wolf unpredictable at the edge in another rotation. * * */ public void turnAtEdge() { int min=0;
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, over 4 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, over 4 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, over 4 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, over 4 years ago:
Ah. My bad.
Check if objects of an actor are available
By meltHam, with 4 replies.
Last reply by meltHam, over 4 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, over 4 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, over 4 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, over 4 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, over 4 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, over 4 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.
76
77
78
79
80
81
82
X