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
remove music when changing world?
By 0868626, with 15 replies.
Last reply by 0868626, almost 13 years ago:
thaaanks maan it worked!!!
Next level
By fhuadie, with 1 reply.
Replied to by danpost, almost 13 years ago:
I do not see any picture attached; however, you should be able to whether an actor or the world. Just add to the act method the code saying that if it is clicked on to go to the next level.
Save after running.
By xnefoo, with 2 replies.
Last reply by xnefoo, almost 13 years ago:
Thank you so much!
combine 5 different games into one scenario.
By 0868626, with 2 replies.
Last reply by 0868626, almost 13 years ago:
thanks really appreciate it
next level click
By fhuadie, with 4 replies.
Last reply by fhuadie, almost 13 years ago:
thank you :) I'll try
How do i display my end score in my winner and game over screen
By virginia001, with 3 replies.
Last reply by danpost, almost 13 years ago:
I prefer to create a GreenfootImage object using the constructor that requires your String text and either use it directly as the image of an actor or draw this new image onto the world background or onto the image of an actor. For example (without creating a new World subclass for the game over screen), you could code this:
how to make animation overlap image in world?
By 0868626, with 1 reply.
Replied to by Gevater_Tod4711, almost 13 years ago:
The world background is always behind the actors but you could create an actor class that has the same image as the world and add this actor in front of the water object. So it would look like the world is in front of the water.
Getting My Platformer to Scroll?
By askgriff, with 3 replies.
Last reply by danpost, almost 13 years ago:
I did not see any code for scrolling within the project.
How do I pass a variable between different worlds?
By Lethal_Vitamin, with 8 replies.
Last reply by danpost, almost 13 years ago:
That is something that is done before uploading to the Greenfoot site. After compiling, right-click on the TitleScreen class icon and select 'new TitleScreen()' from the pop-up menu. Instantiating a world in this way makes it the start-up world class (the world that is initially created during resets). Then re-upload the scenario (after testing not only that it comes up first, but that the scenario runs properly as well -- with special attention to the music).
How do I keep my score from TheWorld to TheWorld2?
By Bean4221, with 9 replies.
Last reply by danpost, almost 13 years ago:
danpost wrote...
You need to set a local field to the new TheWorld2 object, set the value of the counter in the new world to that of the old world and then set the new world active:
Change font size
By kasperk22, with 37 replies.
Last reply by kasperk22, almost 13 years ago:
ooooh now i understand... of course it need to be before thhe removeObject command, sorry i read it aas it said "if placed in the first "if" block, Sorry for that :P
Need help with Constructor involk in jar file
By Upupzealot, with 2 replies.
Last reply by Upupzealot, almost 13 years ago:
I find the reason for this question! It happens when the Construtor wanted to load a GreenfootImage which is not in the "images" directory, such as "images/brush/rock.png"
Referencing an instance of an object through a list
By thebrownkid23, with 2 replies.
Last reply by thebrownkid23, almost 13 years ago:
Okay, thank you. And, I'll change it thanks
Adding score in another class
By Tupac, with 3 replies.
Last reply by danpost, almost 13 years ago:
Change lines 16 and 28 to: <Code Omitted>Using 'getWorld' after 'this' has been 'removeObject'ed from the world will return a 'null' value' -- and no method can be executed (like 'getObjects') on an object that is not there (a 'null' object).
message with the actor
By JustMe, with 13 replies.
Last reply by JustMe, almost 13 years ago:
im sorry i think there is an misunderstanding. i had a code in the beginning where i wrote a code that were i can get 3 different lines in my field when my actors respawn. but my new question was if it was possible to get rid of a text when one actor dissapear. sorry for the misunderstanding
734
735
736
737
738
739
740
X