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
Complicated problem. Pls help!
By Chrizzi, with 14 replies.
Last reply by Chrizzi, over 8 years ago:
Thank you very much :)
How do I make the retry button that does move to the same new instance of world where the button was?
By JOELwindows7, with 7 replies.
Last reply by JOELwindows7, over 8 years ago:
danpost wrote...
JOELwindows7 wrote...
Why would I have to tediously re-register every single level into that if-else registrations?
Well, whatever you do, it will have to be coded separately for each type world -- whether you use an if/if-else construct, a switch statement or inheritance (like how my
Super Level Support Class Demo
scenario controls the levels).
I have used some of the refferences. it works out with little tuning. thx! an optional coding result is coming soon stay tuned.
How to create ball that bounces?
By RSekander, with 1 reply.
Replied to by danpost, over 8 years ago:
You start with some action code -- make it move, detect edges and blocks, etc. I do not know if you will have your ball change its appearance at some point, but for now you can change your updateImage method to this: <Code Omitted>The
ball.clear
was removed because a new
GreenfootImage
object created by given dimensions starts out clear.
How can i remove Object after Time?
By Demyo, with 2 replies.
Last reply by danpost, over 8 years ago:
Demyo wrote...
Hello, i got a problem. I want to remove an Object after 10 seconds but i dont want to use Greenfoot.delay(10) because it pauses the game. << Code Omitted >>
The main entries: <Code Omitted>
How to make my game End?
By Kuhakuu1428, with 2 replies.
Last reply by Kuhakuu1428, over 8 years ago:
I understand, thank you very much :)
Alle Objekte einer Klasse aufeinmal neu platzieren/bewegen
By hdavid, with 8 replies.
Last reply by Super_Hippo, over 8 years ago:
Mit der Version 3.1.0 klappt es auch ohne den Umweg.
How to do a wheelie - make a ramp
By Kinq, with 6 replies.
Last reply by Kinq, over 8 years ago:
Thanks
Fleas Game
By stevex, with 6 replies.
Last reply by danpost, over 8 years ago:
stevex wrote...
Is there a way to run the transpiler to try the javascript version?
Without any available code to your project, it is impossible to say why it will not run in HTML5. However, in the majority of the times, it is because some class in the
java.awt
package is being used.
How do I make each player play once?
By MyName, with 5 replies.
Last reply by danpost, over 8 years ago:
Well, the
turno
method should now be this: <Code Omitted>If you still get an error (or if you do in the future), do not just say you are getting one -- show what error output you are being given.
I'm trying to make this object turn randomly without going through walls.
By Lev, with 1 reply.
Replied to by danpost, over 8 years ago:
Lev wrote...
I have an object named leviathan, how do i get it to move randomly without letting it go through the walls of the maze? << Code Omitted >> I posted yesterday asking how to get my rocket to not go through walls when controlling it, so I'm basing my code off of that. << Code Omitted >>
In each case (direction) in your original code, you did two things -- (1) moved; and (2) if saw wall, moved back. This is not consistent with your new code.
Help! The world constructor threw an exception.
By dave6969, with 3 replies.
Last reply by dave6969, over 8 years ago:
Thanks!
I'm trying to make my class not go through walls.
By Lev, with 4 replies.
Last reply by Lev, over 8 years ago:
I figured it out! Thank you for not giving me the answer xD
How to make greenfoot.ask change variable of something?
By dave6969, with 5 replies.
Last reply by danpost, over 8 years ago:
dave6969 wrote...
And if I want to have 2 questions and 2 answers do i do << Code Omitted >> ?
Well, you would most probably change the question. If the questions are to be back-to-back, you can re-use
input
(so instead of <Code Omitted>you could just use <Code Omitted>and parse it to the new field.
Scenario stopping when switching worlds
By mulon, with 1 reply.
Replied to by danpost, over 8 years ago:
mulon wrote...
My code was working before when the argument of the if statement was based on where the mouse was, but now after I have changed it, the scenario stops when switching to a different world. What can I do to make the scenario not pause? << Code Omitted >>
Nothing in the code given would be the cause of the scenario stopping. Must be something you changed elsewhere (or a bug in greenfoot, which I doubt in this case). If you are getting an error message, please show. If not, you probably have a
Greenfoot.stop()
command stopping the scenario. One improvement, howe
Need help with delay
By Kachima, with 7 replies.
Last reply by danpost, over 8 years ago:
Kachima wrote...
and can i run it infinitely with this method? because thats the point of the game, the longer you survive the more points you get
Correct.
253
254
255
256
257
258
259
X