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
Creating a world with resized images
By alittleteacher, with 5 replies.
Last reply by danpost, over 9 years ago:
You can scale the image to size before the world is created; however, you would need to use static content and it will happen during compilation of the project (before any World object is created): <Code Omitted>
How to get/call method from touching object
By Casper, with 2 replies.
Last reply by Casper, over 9 years ago:
Thanks
A counter that always goes up
By BrianOK, with 3 replies.
Last reply by Xmin_Terminator, over 9 years ago:
I said I don't know much about greenfoot, and I just said danpost because he has helped me a lot, just trying to share what I know, sorry for what I got wrong.
Help with error! (World Switching)
By KimoDev, with 1 reply.
Replied to by danpost, over 9 years ago:
If there is only one healthBar object in each of your worlds, then you can change lines 21 and 22 of the Meteorite class to this: <Code Omitted>You can do similarly to lines 15 and 16 of the Ball class if you only have one Counter object in each of your worlds.
How do i make a delay when shooting
By Ozan31, with 2 replies.
Last reply by Ozan31, over 9 years ago:
Thanks for that, i appreciate your help.
Coordinates from another class
By Benni, with 1 reply.
Replied to by danpost, over 9 years ago:
Use the 'getObjectsInRange' method: <Code Omitted>The above line will have its block of code execute if any are in range.
How to set up a currency class and counter?
By Alola_Sandslash, with 3 replies.
Last reply by danpost, over 9 years ago:
Alola_Sandslash wrote...
Yeah but I don't know which methods would be the cleanest. Also I am having trouble calling methods from other classes, is this necessary?
Not if you keep everything about the currency in your world class and use a simple actor object to display the currency. Please refer to by
Value Display Tutorial
scenario.
IllegalStateException: Actor not in world regarding three objects
By MarktheBrit, with 2 replies.
Last reply by MarktheBrit, over 9 years ago:
That works, thanks a ton!
how to stop this code when my actor dies
By BrianOK, with 1 reply.
Replied to by danpost, over 9 years ago:
Need to see all the codes from where 'addScore' is being called from.
How to switch levels after its over?
By kursatA, with 11 replies.
Last reply by kursatA, over 9 years ago:
you're*
End the Game
By Chris80, with 1 reply.
Replied to by danpost, over 9 years ago:
Chris80 wrote...
I want to end the game after winning by one of the player. Game should end when Gameover box appears .
Add a 'Greenfoot.stop();' statement immediately after having the Gameover box added into the world. You can also add the following method to your World subclass: <Code Omitted>This is so the user is not able to restart (unpause) the game.
Stop the world
By ali18, with 2 replies.
Last reply by ali18, over 9 years ago:
Thanks!!
Defining a String
By rockon411, with 2 replies.
Last reply by rockon411, over 9 years ago:
Thanks! It worked!
Colission from the side/top
By Casper, with 2 replies.
Last reply by Casper, over 9 years ago:
Thanks man, it works
Help with my Shark game please?
By Optimistic_Celery, with 8 replies.
Last reply by danpost, over 9 years ago:
Optimistic_Celery wrote...
Nope, theFish1 wont spawn either, and the other spawn programs are identical. That spawn_theFish1, along with the others, are all in public MyWorld.
You did not answer my other question:
danpost wrote...
What method is that code in and what class? If not the act method, is the method being called from the act method?
The 'class' part was answered; but, not the 'method' part. Please post your entire MyWorld class code.
357
358
359
360
361
362
363
X