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
sound loop issue
By qwe, with 3 replies.
Last reply by danpost, over 7 years ago:
qwe wrote...
Iv'e tried that, but i keep on receiving errors. How else can I do it?
What errors are you getting? (copy/paste in entirety)
Moving Scenery Troubles
By The_Beast0007, with 2 replies.
Last reply by The_Beast0007, over 7 years ago:
YAY! It worked, thank you so much danpost. I had no idea about the bounded option for worlds!
Bullets travel in a spiral
By tehbestcoder, with 1 reply.
Replied to by danpost, over 7 years ago:
tehbestcoder wrote...
So I want the bullet to turn 18 more than last time when a new one it is created so it becomes a spiral but it doesn't work. I think it won't work like how i coded but i don't know how to make it work. << Image Omitted >> << Code Omitted >>
This was already discussed
here
.
Predicting text bounds
By Zamoht, with 4 replies.
Last reply by Zamoht, over 7 years ago:
I did look at your TextImage solution, which works very well with AWT, but well AWT seems to be the solution and the problem at the same time.
Bullet travel in a spiral path
By AttackTheMOON, with 2 replies.
Last reply by AttackTheMOON, over 7 years ago:
Thank you @danpost It works how I wanted it to!
How can a enemy (not the player) move only on the y axis?
By pleasetroll, with 3 replies.
Last reply by danpost, over 7 years ago:
pleasetroll wrote...
Always when Mario hit him Bowser should change his position on the y axis to a random one...
Do you want him to move gradually to a new location or just teleport there?
Subtracting a value from a variable
By CosmicCaleb, with 9 replies.
Last reply by danpost, over 7 years ago:
I was going to add the following to the class: <Code Omitted>so the missile has an initial image.
Health Doesnt Go Down Decrease The Number
By ErnieBoi, with 1 reply.
Replied to by danpost, over 7 years ago:
ErnieBoi wrote...
Health doesnt go down when monster touch champion man battle boi << Code Omitted >>
Try to "Find" the variable name "
health
" among your classes, where it refers to the health of your champion. Let us know where it is found, anywhere except line 12 in the Champion class.
Health In Game Problem
By ErnieBoi, with 4 replies.
Last reply by ErnieBoi, over 7 years ago:
Zamoht wrote...
When you call removeHealth() in the act method after the champion is dead it has been removed from the world which leads to a null pointer when calling getWorld(). Try to change the code of your act method to:
animation
By ebollinger@sonorahigh.net, with 1 reply.
Replied to by danpost, over 7 years ago:
ebollinger@sonorahigh.net wrote...
when i have my classes change pictures it goes by to quikly how can i fix this
Depends on what code you already have to animate your actors.
loading bar
By ebollinger@sonorahigh.net, with 1 reply.
Replied to by danpost, over 7 years ago:
Please refer to my
Value Display Tutorial
scenario. A loading bar is just a non-textual representation of a value. The value is the loaded percent of the total to be loaded.
If score is 4, spawn actor
By Findr, with 2 replies.
Last reply by Findr, over 7 years ago:
It finally works! Thank you very much.
Need help with Health
By Lewis12374, with 3 replies.
Last reply by danpost, over 7 years ago:
Lewis12374 wrote...
Here is the code for my health. It is not working, how do fix? << Codes Omitted >>
Change the beginning of line 2 in the
Bullet
class code above to "Main main = ...". The
health
field cannot be found otherwise.
score display
By aa124, with 6 replies.
Last reply by aa124, over 7 years ago:
THANKS DANPOST
Help!!!!!!!!! Can you please help me with my Counter source code.
By mrflex, with 6 replies.
Last reply by danpost, over 7 years ago:
mrflex wrote...
what is missing
Font size, text color and background Color. See
here
.
221
222
223
224
225
226
227
X