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 it so I only shoot 1 bullet when space is pressed?
By NUKES, with 2 replies.
Last reply by NUKES, over 3 years ago:
works perfectly, thank you very much!
Object does not get removed when at Edge.
By NUKES, with 2 replies.
Last reply by NUKES, over 3 years ago:
danpost wrote...
NUKES wrote...
This might just be a stupid mistake by me, but I cant for the love of god figure out why it does not work. In the following code, I made it so, if my "Bullet" object, touches either the Edge or the "Ball" class, it should get removed, but for some reason it just stays?
Is the
remove
method being called from anywhere? If so, from where? If not, then why not?
As I thought im just Stupid lol. I had to call the remove method. works now, thanks.
Lamda expression and double colon operator
By Roshan123, with 5 replies.
Last reply by RcCookie, over 3 years ago:
Roshan123 wrote...
Thanks a lot to both of you @RcCookie can it be also written as <Code Omitted> ?
No, because Button is not the interface with one method. But you could write <Code Omitted>
laser collision detection not removing the laser when a hit is detected
By roonie01, with 1 reply.
Replied to by Spock47, over 3 years ago:
Can some one plz give me code to make a score counter according to how much seconds the actor is alive
By apcode, with 1 reply.
Replied to by danpost, over 3 years ago:
apcode wrote...
make a score counter according to how much seconds the actor is alive
In class of actor: <Code Omitted>
WHY WONT BY WORLD BUILD
By Damste22, with 1 reply.
Replied to by danpost, over 3 years ago:
Damste22 wrote...
the program's not creating my world
<Code Omitted>and <Code Omitted>The iterators,
i
, remain at zero (no increments given). So, it is stuck in a loop.
World
object never completes initializing. In fact,
Key
objects are created for the first white key multiple times, repeatedly, until memory runs out, whereby you will get a
OutOfMemoryException
.
cant get the zombie boss lives to go down
By Soop__, with 2 replies.
Last reply by Soop__, over 3 years ago:
hi danpost finally got it working thanks for the help :)
Screen change
By tomzz, with 4 replies.
Last reply by danpost, over 3 years ago:
tomzz wrote...
But do you know a way I can add a world on a world? Like a little screen on my current World?
Two ways to do that (at least). One is to create a world whose background mimics the real world, like in a paused state. It is not a world in a world, but it could be made to appear as such. Another way, which does not involve another world altogether, is to just use an actor for the "little screen". Just have all operations suspended while that actor is in the world. For further details, just ask.
Screen
By tomzz, with no replies.
Also, how can I add a screen to my world? So I was doing a chess game. Whenever the pawn reaches the end I wanted a little screen to appear. How do I do that? Please Help.
Greenfoot.mouseclicked doesn't reacts after a click
By stefco05, with 4 replies.
Last reply by stefco05, over 3 years ago:
Thank you! I’ll try it later.
Which keyboard shortcut can complete my code
By Flipper3000, with 1 reply.
Replied to by Super_Hippo, over 3 years ago:
Default key-binding is Ctrl+Space. You can change it in the settings.
when the player is attacked by Zombie they can't shoot.
By Soop__, with 3 replies.
Last reply by Soop__, over 3 years ago:
yes i think i was a bit blind with my code ive just seen it, ill change it to more a appropriate wording , thank you :) ill come back if it still isnt working.
transparent gif
By Aaron-aid, with 6 replies.
Last reply by danpost, over 3 years ago:
Aaron-aid wrote...
that fixed that issue but im still having probs with the gif :c
Scale down your images in the files themselves. Also, remove any excess transparencies around the outer edges (top, left, right and bottom) of the images.
Remove a world
By TurboCoder007, with 1 reply.
Replied to by Spock47, over 3 years ago:
The question is a little bit difficult to understand. So, I will give you answers to some questions and hope that one of them is helpful for you.
1. How to change the current(-ly shown) world (while the scenario is already running)?
Call the method Greenfoot.setWorld with the new world as parameter, e.g. <Code Omitted>
2. How can I set a different world to be the start world (=the current world at the start of the scenario)?
Right click on the World class that you want to be used for the start world (e.
Greenfoot3D by GreenHouse
By Game/maniac, with no replies.
To anyone that was active in 2013-2014… do you have a copy of Greenfoot3D was was created by GreenHouse?
45
46
47
48
49
50
51
X