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
How To Solve Error:class,Interface And Enum Expected in this Codes
By palash, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
You have code outside classes. That doesn't make much sense to make.
How to make a tetris like game
By JupiterForeheadSam, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
There are several discussions here about games like Tetris. As a general advise: Four blocks form a tetromino. Always move the blocks together. If one fails to fall, move all four back. For making them disappear: Every time a tetromino fails to move further (which also leads to the creation of the next one), check each row if it is full. If any row is full, remove all the blocks in this row and move every block which is above it (smaller y-coordinate) down once. The scoreboard should be made when the rest works.
My zombies won't spawn!
By Grace20102, with 2 replies.
Last reply by Grace20102, over 9 years ago:
Nosson1459 wrote...
With your shown code there is no place that an addObject for a zombie gets executed. The only place that there is one is in the spawnZombie method which gets called in the runTimer method which doesn't get called (in the act). Your complete Game class should be:
How do I make more than one zombie spawn in at the same time?
By Grace20102, with 8 replies.
Last reply by Grace20102, over 9 years ago:
Super_Hippo wrote...
If you don't want the actor to rotate, try this: <Code Omitted>
It worked! Thank you so much!
Returning the Nearest Object
By rockon411, with 8 replies.
Last reply by rockon411, over 9 years ago:
Actually I didn't and I just fixed it! Everything compiles and the tests pass. Thank you so much!
Error when removing an enemy from the world
By Jillis, with 5 replies.
Last reply by Super_Hippo, over 9 years ago:
Well, there is no need to call it from the act method anymore if you moved 15-18 to after 10.
How do you check if ClassA has touched ClassB from MyWorld
By Sirpancakeking, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Classes do not touch. Maybe instances of certain classes can touch. But it seems like you are already calling the method on an actor and not on a class (which is good). You can create a method in your ClassA (or B) to do the job for you: <Code Omitted> Then call this method instead.
setImage
By adlafforest, with 5 replies.
Last reply by Super_Hippo, over 9 years ago:
Then you need to create an actor and give it this image.
drawing a rectangular spiral with crosses (for-loop)
By larry020, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
If I get you right, it should be this: <Code Omitted> However, if you actually want to have it visually moving this track, it shouldn't be done in a for loop.
Add object isn't working!
By Grace20102, with 4 replies.
Last reply by Grace20102, over 9 years ago:
woodmoor03 wrote...
what are you trying to get working
A zombie game I am making :D
Medadata Extractor API
By ryanparks5, with no replies.
Hello, Does anyone know how to implement a metadata extractor api so I can analyze photographs and put them into certain albums (arrays) based of of their medadat values?
Detect if running
By 101929ha, with 4 replies.
Last reply by 101929ha, over 9 years ago:
OK. Thanks for the help.
Characters Vibrate ( I NEED ADVICE ) Also why do i get this Error Message- IOException writing debug log
By Jimmywow, with 4 replies.
Last reply by Super_Hippo, over 9 years ago:
Follow that link:
https://www.greenfoot.org/doc/code-tags
For scrolling worlds, try to use the search option above. There are a few around here on the website which you can download.
My background music is weird... Need Help
By Zappib, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
You have a backgroundMusic object already. I mean you use that variable and if you don't have it, it shouldn't compile. It depends from where you change the world. <Code Omitted>
How to test if the Object is still there
By Emil, with 2 replies.
Last reply by Emil, over 9 years ago:
Thanks man, that works perfectly! :)
377
378
379
380
381
382
383
X