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
Need help with a rocket game
By KevinGV, with 1 reply.
Replied to by danpost, over 5 years ago:
KevinGV wrote...
(I want to slow down my rocket, how can I do that? Like when i press "s" the rocket slows down or stops
Show your current Rocket class codes.
Creating a game but counter keeps breaking
By OpticalFlow, with 6 replies.
Last reply by danpost, over 5 years ago:
OpticalFlow wrote...
I changed the ifs so they were the same and their hitbox appears to be smaller. But the worlds do not save when I go in between them does this have something to do with Greenfoot.setWorld(new Outside());?
Correct. You will need to keep a valid reference to any world that you wish to return to if you want it to be exactly as you left it. You could adjust the score in the world proceeding to when changing worlds. Sidenote: I would not have thought the hit box size would be changed.
Scenario not working on Greenfoot site
By mrjswaine, with 2 replies.
Last reply by RcCookie, over 5 years ago:
I lately had the same problem, and for me it was caused by running a later version of the jdk. It is fine in the application but the JavaScript conversion doesn’t seem to work. Try to reinstall Greenfoot, or download the zip and replace the jdk folder in your Greenfoot installation with the one from the zip. Finally, make sure to delete all the class files and use the recompile option from one of the drop down menus because sometimes Java ain’t recompile everything automatically and just show an error.
Maximum values
By Hellotheremyfriend, with 5 replies.
Last reply by Hellotheremyfriend, over 5 years ago:
Thanks bro, I appreciate it alot
GameOver
By NewbJava, with 18 replies.
Last reply by NewbJava, over 5 years ago:
danpost wrote...
Remove line 68 from the
Rocket
class (the "stop" line).
Yes it works now thank you for your help.
Wondering how to remove objects from other classes
By Duck12, with 6 replies.
Last reply by Duck12, over 5 years ago:
never mind it works Thank you so much!
Deny CheckKeypress()/isKeyDown() and Force a move()
By ksimuscb, with 1 reply.
Replied to by danpost, over 5 years ago:
If I am not mistaken, you want your coding in the following fomat: if inverting, invert else move and check collision
How to use a method to touch a different object
By ThiagoPorto, with 7 replies.
Last reply by ThiagoPorto, over 5 years ago:
danpost wrote...
Remove line 98 in
goku1
class. Obtain a reference to the
jiren
actor being touched at line 108 and call
importa_socos
on it.
Thank you very much, it worked!
actor not in world
By NewbJava, with 2 replies.
Last reply by danpost, over 5 years ago:
Either insert: <Code Omitted>at line 64; or use "
else if
" on line 65.
Drawing text onto a GreenfootImage
By RcCookie, with 4 replies.
Last reply by danpost, over 5 years ago:
danpost wrote...
If that is not a problem, I suggest you check out my
TextImage Support Class
scenario.
It is now updated to run in newer versions of greenfoot.
hint button
By superman2, with 9 replies.
Last reply by danpost, over 5 years ago:
Oh, I think I see -- "x seconds". If you do not mind the scenario to temporarily freeze during the hint display, you can use the
Greenfoot
class
delay
method. Otherwise, an
int timer
field would be sufficient.
Gif image question
By cjz19931031, with 15 replies.
Last reply by danpost, over 5 years ago:
danpost wrote...
Remove lines 35 and 38.
Swapping lines 37 and 38 would produce the same results.
Creating solid object horizontally, vertically, diagonally
By Duck12, with 5 replies.
Last reply by Duck12, over 5 years ago:
That solved my problem thanks Danpost!
not in world issues
By NewbJava, with 13 replies.
Last reply by NewbJava, over 5 years ago:
danpost wrote...
NewbJava wrote...
some lasers would hit a meteor and not show the animation and just disappear
Remove all from after line 18 to the keyword "if" on line 25 in the
Lazars
class.
Thank you, that fixed the problem. I appreciate you taking the time to help me.
Hancur()
By NewbJava, with 3 replies.
Last reply by danpost, over 5 years ago:
NewbJava wrote...
like how it is used and what it is used for?
No -- like where did you come across this method? -- where did you find it? And, what are its codes? Show the method..
102
103
104
105
106
107
108
X