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
My Platforms dont work with My gravity
By MrSkyPanda, with 18 replies.
Last reply by danpost, over 5 years ago:
MrSkyPanda wrote...
ok so how do i fix it?
Again refer to my demo. If you have behavioral issues with the code, then show that code and ask questions. Or, you can upload the scenario with the unwanted behavior (or a sample exhibiting that behavior with the same problem code).
Please Help: My Circles won't become Transparent
By justwooki, with 1 reply.
Replied to by MrSkyPanda, over 5 years ago:
is your oval an actor?
Adding only one actor
By NikoAa, with 1 reply.
Replied to by danpost, over 5 years ago:
NikoAa wrote...
I'm making a game where i want to add another actor every time the score is divisible 5. << Code Omitted >>
Move line 7 to after line 12. This will limit the score divisibility check to only when the score changes.
Collision
By Roshan123, with 21 replies.
Last reply by danpost, over 5 years ago:
Roshan123 wrote...
I noticed that u wrote 90* If i m not wrong then the algorithms are only for only 90° rotation and not for all degrees of rotation
I guess you are looking for something more along these lines:
ZIG-ZAG MOVEMENT OF CHESS PIECES
By 1234567890, with 1 reply.
Replied to by danpost, over 5 years ago:
Answers to hints: 1) every other move; 2) same as (1), but not on same moves; 3) always; 4) when at (right) edge (or after 7 moves, if starting at left edge). If you flip the
boolean
value every act, it should not be hard to move in a zigzag across the board using an
if
conditioned on the
boolean
.
My Platforms dont work with My gravity
By MrSkyPanda, with no replies.
it keeps going right through the platform. and everytime i run it, it also slowly moves to the left for some reason. How Do i fix it?<Code Omitted>
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 आपका शुक्रिया । भगवान आपका भला करे
108
109
110
111
112
113
114
X