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
stoping a sound when it reaches a subclass
By ErasedBlade, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
You need a reference to the GreenfootSound object which is playing. So when creating it, make sure you keep a reference to it or you will never be able to do anything with it afterwards.
Someone has already asked this, but my counter won't work across multiple worlds.
By AmyIsBadAtCoding, with 6 replies.
Last reply by AmyIsBadAtCoding, about 7 years ago:
ok ill go back and use the other thread
Fixing if objects are intersecting
By The_bazm, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
You need half of the sum of the height of both actor's images. So basically: <Code Omitted>with "obj" = the object which was intersected.
Boundaries and Scrolling World
By Joyfu1, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
Show the class code of the actor which leaves the world. In your world, you don't have anything which would prevent objects from moving outside the world boundaries.
Scrolling Screen
By Çðæyœn, with 1 reply.
Replied to by danpost, about 7 years ago:
Çðæyœn wrote...
My issue is I have no idea how to make a scrolling screen that scrolls indefinitely at a constant rate, meaning that the movement of actors will not affect scrolling.
Please see my
Scrolling Tutorial
scenario.
On an unrelated note, I am also trying to figure out how to make an array list for asteroids, since the screen will scroll infinitely and asteroids will be randomly generated to be in random locations for the spaceship to avoid (asteroids cannot overlap and cannot be closer than a certain distance from o
My plane size editing code isn't working again!
By AmyIsBadAtCoding, with 4 replies.
Last reply by AmyIsBadAtCoding, about 7 years ago:
My IQ is so high lol
Greenfoot won't launch JavaFX error (Ubuntu 18.04)
By tomahok, with 3 replies.
Last reply by Super_Hippo, about 7 years ago:
So it works for you again?
How to remove an certain Object
By TobiMobi, with 2 replies.
Last reply by TobiMobi, about 7 years ago:
Thank you it works.
backgrounf image
By teo1105, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
Put this into the world's constructor. <Code Omitted>
hp problems
By loldertroll, with 3 replies.
Last reply by danpost, about 7 years ago:
More precise might be the following for when boss takes damage: <Code Omitted>
Can't work out what number I need to put for the game to detect me touching the right side of the world
By AmyIsBadAtCoding, with 2 replies.
Last reply by AmyIsBadAtCoding, about 7 years ago:
Ahh yes silly me, thanks a bunch
How can I make greenfoot choose a random world?
By AmyIsBadAtCoding, with 4 replies.
Last reply by Super_Hippo, about 7 years ago:
Well, if there are 60 act cycles a second, the chance that you notice it is small, but it can happen that the object is already at the edge of the world for some act cycles before the world actually changes.
Why is this an illegal expression?
By AmyIsBadAtCoding, with 3 replies.
Last reply by AmyIsBadAtCoding, about 7 years ago:
Thanks, it works now!
error in the terminal
By loldertroll, with 5 replies.
Last reply by Super_Hippo, about 7 years ago:
This should also work: <Code Omitted>
My game wont end when I want it to
By AmyIsBadAtCoding, with 4 replies.
Last reply by AmyIsBadAtCoding, about 7 years ago:
Brilliant, it works! Thanks mate
185
186
187
188
189
190
191
X