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
Please help
By ThatAsianPixel, with 5 replies.
Last reply by danpost, about 6 years ago:
ThatAsianPixel wrote...
types? if you mean the things that it can be assigned to, it's
Blastoise
,
Charizard
, and
Venusaur
. They all have the same code as Blastoise (the current class)
Then you will need to determine which is assigned to
selectedCPU
before you can call
getStats
on it: <Code Omitted>
2048
By whattheheck, with 8 replies.
Last reply by danpost, about 6 years ago:
whattheheck wrote...
Do you know why that made a difference?
The next move is based on the value of movable. If you compute it prior to the current move then the movability of the next move is based on the wrong state -- it will move twice on the same computation (which is why you were having the actors pile atop one another.
hi, I have a background music playing for my scene, but have it play once after being pressed in stead of playing once more after being pressed again. please help! thanks guys!
By Tommy_macaroni, with 1 reply.
Replied to by danpost, about 6 years ago:
Move line 6 to outside the method and change line 4 to: <Code Omitted>
How to make a GIF world background
By Yoshi21137, with 5 replies.
Last reply by Yoshi21137, about 6 years ago:
Nevermind, don't need it anymore :/
java.lang.OutOfMemoryError: Java heap space
By Yoshi21137, with 2 replies.
Last reply by footpickle, about 6 years ago:
I get this a lot. I just close greenfoot and reopen it and everything is all good.
Spawning actor instances in random locations
By Happycrusher764, with 4 replies.
Last reply by Happycrusher764, about 6 years ago:
ok nvm i removed the GetWorld method and just used add object and removed the Strabberry = new Strawberry to just new Strawberry and now it works! Thank you so much!
Need help with Variables
By Happycrusher764, with 5 replies.
Last reply by Happycrusher764, about 6 years ago:
It says variable not found
java.lang.OutOfMemoryError: Java heap space
By footpickle, with 1 reply.
Replied to by footpickle, about 6 years ago:
nevermind
How to properly use setImage?
By footpickle, with 34 replies.
Last reply by footpickle, about 6 years ago:
Also, how would I get a value from one actor to another? I'm trying to make a counter that saves the data over multiple worlds, but I couldn't figure out how so I made a new counter and tried to get the first counter's data, but it didn't work. How do I get the value from Counter to Counter2?
Making a random enemy move back and forth while still punching?
By yko1, with 2 replies.
Last reply by yko1, about 6 years ago:
Yes, I expected that there would be random things in my code...I'm not quite sure what I am doing. The true or false values were so that if the Bully touched the MainKid, it would move back (after performing punch, which I did not add yet), and then it would go to the start point and then the value would change and it would start over. The moveBack method was kind of a test to see if the Bully would move back (I did not set the values yet). I ran the time for the punchMain because I wanted there to be a delay so that the Bully did not get any more extra hits than 1, if that is correct. I under
I need a bit of help
By ThatAsianPixel, with 1 reply.
Replied to by danpost, about 6 years ago:
ThatAsianPixel wrote...
I think I got something wrong with the ms.getMoveset.size() << Code Omitted >>
You have yet to create an
ArrayList
object in your
Moveset
class (line 3 by default is assigned a
null
value).
Int between worlds
By Yoshi21137, with no replies.
I have an int in one of my worlds and I want to call it from another world The code I want to use it in is <Code Omitted> That code is in a different world to the int
Help!
By Muurc, with 1 reply.
Replied to by danpost, about 6 years ago:
Muurc wrote...
I want a driving object to drive on a button which activates a bomb which explodes. When the bomb explodes, all objects around the bomb have be destroyed and removed from the world. I managed to get the bomb activated. The only problem is, that I don't know how to get the bomb to remove objects around it only when the driving object hits the button. In my case the bomb immediately removes the objects before everything else start to move. I have to teach the bomb to remove the objects only when the button is hit.
You can add an
addedToWorld
method for the bombs. It
HELPP!!!
By IMARCUS, with 2 replies.
Last reply by danpost, about 6 years ago:
IMARCUS wrote...
I'm getting an error on line 35
What is the error you are getting? (copy/paste in entirety)
java.lang.NullPointerException problems
By Yoshi21137, with 6 replies.
Last reply by danpost, about 6 years ago:
Then, you can remove line 1 in your previous posts. The first line in act can be removed, as well. Also, when it dies, it should remove the health bar from the world, too (first).
141
142
143
144
145
146
147
X