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 to make a clock
By Kanha, with 4 replies.
Last reply by RcCookie, over 5 years ago:
Do you want to know how to implement a timer or how to display it?
Question to print a message with loop
By Sslur, with 1 reply.
Replied to by danpost, over 5 years ago:
Sslur wrote...
How do I print text on the screen using a for loop?.
Please provide context and example (or complete attempted codes). The reason I am not giving any type of answer immediately here is because a
for
loop will complete within a single act frame -- so it would be like printing the entire text string at once. Maybe you have some reason for using a loop. I just don't know; therefore more information would be helpful in determining the best response.
Problems with <iframe>
By Bolla13, with no replies.
I've embedded a Greenfoot Scenario in a own website. Unfortunately my game does not react after a second start. Mouse input does not work. I have to clear the cache first, but then sometimes it does not always work. Could it be because I test my website with localhost. Or is there a kind of refresh for <iframe>? I just realized that I have to refresh the site in Firefox, Edge and also in IE.????? Does this have to do with <iframe>?
Export / Share --> .jar File embed in own website
By Bolla13, with 4 replies.
Last reply by Bolla13, over 5 years ago:
I just realized that I have to refresh the site in Firefox, Edge and also in IE.????? Does this have to do with <iframe>?
how to make nonrenewable collectables?
By wisetrap11, with 8 replies.
Last reply by wisetrap11, over 5 years ago:
Actually, I've figured it out now. Thanks for the help, though.
Question about pause
By DatHeroAndy, with 4 replies.
Last reply by RcCookie, over 5 years ago:
Or also only execute Greenfoot.start() if some key is not pressed down. If it is it will not turn back on
STRING
By BastienY, with 2 replies.
Last reply by danpost, over 5 years ago:
RcCookie wrote...
You can use showText() from the World class.
From an Actor subclass with an actor that is in the world, you can use: <Code Omitted>
Greenfoot drawLine
By off.nika, with 1 reply.
Replied to by off.nika, over 5 years ago:
I have it. Dont need help. Thank you.
Check collision before adding
By Roshan123, with 68 replies.
Last reply by Roshan123, over 5 years ago:
danpost wrote...
Roshan123 wrote...
But how did u got to know that its working?? Is it possible to check or not??
Pause scenario and manually remove
B
from world (right-click on it and select
Delete
from drop-down). Then drag another actor to where the removed actor would be added and hit the
Run
button.
Yoyoyjhrhdhdj
its work-king
hdfshsjjsjshahahha आपका शुक्रिया । भगवान आपका भला करे
5 Squares and per Square -10 size
By schniggi, with 2 replies.
Last reply by schniggi, over 5 years ago:
Thanks a lot!
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
By DatHeroAndy, with 2 replies.
Last reply by DatHeroAndy, over 5 years ago:
danpost wrote...
DatHeroAndy wrote...
When I create the variable in line 34 I get this error: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 << Code Omitted >>
It is trying to tell you that the returned list is empty and therefore you cannot get any element from it. First check to ensure the list is NOT empty before trying to get an element from it.
Fixed it. Thanks for the explanation.
How can I spawn two Objects, in 2 different sizes?
By schniggi, with 5 replies.
Last reply by schniggi, over 5 years ago:
Nvm, it works
Object won't get removed.
By ItzLukeStorm, with 14 replies.
Last reply by ItzLukeStorm, over 5 years ago:
It worked, thanks.
how to spawn a Actor twice and give them diffrend movement
By EddiMitY, with 3 replies.
Last reply by DatHeroAndy, over 5 years ago:
Assign the Constructor of your Car with this variable: public Car(int turner) Car Code:
how do you make an object jump
By ninjapuffin, with 3 replies.
Last reply by ninjapuffin, over 5 years ago:
thanks
108
109
110
111
112
113
114
X