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
Timer and scoreboard
By AnJoMorto, with 2 replies.
Last reply by AnJoMorto, almost 5 years ago:
Thank you danpost, your Value Display Tutorial is awesome. Timer's working perfectly!
No sound
By Topben107, with 14 replies.
Last reply by mariq_rasyid29, almost 5 years ago:
mariq_rasyid29 wrote...
why not use after public class used <Code Omitted>then in public void act type <Code Omitted>or <Code Omitted>
this is very work in my project
Change variable from another actor
By Plane_Crazy, with 8 replies.
Last reply by danpost, almost 5 years ago:
Plane_Crazy wrote...
several. I think that there is around 10
Do you get multiple mushrooms from them?
Getting boolean from other class
By liekevaniep01, with 9 replies.
Last reply by liekevaniep01, almost 5 years ago:
Oké thank you
How do I check if an actor is still in the world?
By s4m3350, with 3 replies.
Last reply by danpost, almost 5 years ago:
s4m3350 wrote...
I pasted that in and changed the variables to work with my game... and nothing. any idea why?
Where did you put it? Show class' codes.
How To Delay for a few Seconds
By ConorK, with 3 replies.
Last reply by danpost, almost 5 years ago:
ConorK wrote...
I've tried using the .delay() but I also have other objects moving at a certain speed, but they slow done when I use it. Is there a way to only delay the problem and not the entire screen?
Yes.. Add an int timer field. Increment it each act. Change problem when the timer is divisible by 180.
Math Problem randomizer won't work
By ConorK, with 3 replies.
Last reply by danpost, almost 5 years ago:
I guess my lines 4 and 5 could be replaced with: <Code Omitted>
Is there an opposite of 'Turn towards'
By liekevaniep01, with 2 replies.
Last reply by liekevaniep01, almost 5 years ago:
It works! thanks
Image doesn't work
By liekevaniep01, with 2 replies.
Last reply by liekevaniep01, almost 5 years ago:
I have exported the file again in png and it works now!
How to make your font bold
By liekevaniep01, with 3 replies.
Last reply by liekevaniep01, almost 5 years ago:
Thanks!!
Getting Int from another class out of another world
By GambleEnte, with 6 replies.
Last reply by danpost, almost 5 years ago:
GambleEnte wrote...
I uploaded it to my account.
I took a look. I think you can just make the
difficulty
field in the
Options
class
static
. Then in your
Enemy
class, you can refer to it as in the following line: <Code Omitted>
Hi
By amilsameer, with 5 replies.
Last reply by amilsameer, almost 5 years ago:
danpost wrote...
A zero rotation is always to the right. Rotation increases as you go clockwise. To "face" upward, an object must be turned three quarters the way around clockwise (3/4 of 360, 360 being a full circle, is 270). So setting an actor's rotation to 270 will have it face, or point, upward.
OMG THANQ IT WORJKER HSDDHSSAHHSHS
how to call this method to Blizzard.class
By mariq_rasyid29, with 3 replies.
Last reply by danpost, almost 5 years ago:
mariq_rasyid29 wrote...
if alien died will be give exp to blizzard class how to making the method for that?
In
Alien
class
Died
method, before removing from world: <Code Omitted>
Volume Up and Down Chp 10 Simple Mp3
By Seb_3, with 2 replies.
Last reply by danpost, almost 5 years ago:
Problem 1: two instances of sound. Remove sound from
PlayPauseButton
class. Problem 2: unchecked argument for
setVolume
. Ensure value is in range
0
to
100
, inclusive to avoid throwing
IllegalArgumentException
. Controlling the sound through the user is (or should be) a behavior of the object containing that sound. Make button classes basically empty of added code and have world (where sound is) check for clicks on these objects.
Greenfoot won't recognize same image
By AnJoMorto, with 5 replies.
Last reply by AnJoMorto, almost 5 years ago:
danpost wrote...
You probably are using a default image of a
chestBleu.png
for the class, which is NOT the same
instance
of the first image in
images
.
*facepalm* that's exactly it... Oh well thank you for your help I really started to think that nothing could be done here
82
83
84
85
86
87
88
X