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
Automated creation of objects?
By cl0q, with 1 reply.
Replied to by danpost, about 5 years ago:
cl0q wrote...
I don't want to have to give the names of the objects manually
What do you mean by that?
Problem with GreenfootImage
By cl0q, with 3 replies.
Last reply by danpost, about 5 years ago:
Remove lines 17 thru 20 and line 22. Then put the following at line 14: <Code Omitted>Finally, swap the usage in
act
of all
move
and
setLocation lines
(or use
setLocation
throughout).
Steam looks weird
By BlueHand, with 1 reply.
Replied to by danpost, about 5 years ago:
BlueHand wrote...
Because the ball isn't moving, my steam particles are moving to the right. How do I make them move up?
Put the following in your Steam class: <Code Omitted>
Turn if hit wall does not work
By gfsdhjjks, with 2 replies.
Last reply by gfsdhjjks, about 5 years ago:
danpost wrote...
Shift lines 28 thru 37 up one line (to immediately after line 26). You can also remove line 4.
thanks for ur help
How to make the spawnrate go faster over time?
By KeLLox, with 1 reply.
Replied to by AnJoMorto, about 5 years ago:
Total DIY code written by a total amateur without testing but if it works it might help you until someone more competent answers: <Code Omitted>
How to add Background Music
By Ajay7heDJ, with 3 replies.
Last reply by danpost, about 5 years ago:
The
prepare
method needs to be called by the
MyWorld
constructor.
how can I get the world from an empty class?
By Who_TheGreen, with 3 replies.
Last reply by Who_TheGreen, about 5 years ago:
Thanks a lot, rocket770! It works perfectly, helps me out a lot! Best regards, stay safe and stay healthy!, Who_TheGreen
Restart button class for two different worlds
By AnJoMorto, with 2 replies.
Last reply by AnJoMorto, about 5 years ago:
Oh I didn't even know that this thing existed. Thank you!
Help with the pause button
By AnJoMorto, with 5 replies.
Last reply by AnJoMorto, about 5 years ago:
Once again @danpost your help is so appreciated! This works like wonders, and it ended up way prettier than I would ever even think of
Timer and scoreboard
By AnJoMorto, with 2 replies.
Last reply by AnJoMorto, about 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, about 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, about 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, about 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, about 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, about 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.
82
83
84
85
86
87
88
X