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
Score counter not working.
By Bntyhntr501, with 20 replies.
Last reply by danpost, over 12 years ago:
Best regards.
Code for creating a solid object?
By stateoaks, with 6 replies.
Last reply by SAAEngineer, over 12 years ago:
It's a very stupid question but in your code there is Wall.class , if i have an object called Side how would i have to rename the .class bit?
Gevater_Tod4711 wrote...
Oh sorry that was my fail. Instead of .isEmpty you can use != null. Then it should work. The code then should look like this: <Code Omitted>
well this is embarassing...
By SullyFish, with 1 reply.
Replied to by SullyFish, over 12 years ago:
never mind disregard that!
I'm getting an error with my constructors
By steelparagon, with 1 reply.
Replied to by bourne, over 12 years ago:
"Super" needs to be lowercased (line 11 of Primary) <Code Omitted>And you probably meant this: <Code Omitted>
How would I code this?
By iSuckAtGreenfoot, with 1 reply.
Replied to by danpost, over 12 years ago:
Create a subclass of Actor called Pizza. Add a static field to hold a GreenfootImage object that is to be the image of all the Pizza objects. Add another field, not static this time, to hold an int value that is to be the speed of a Pizza object ('static' goes for all and not 'static' goes for each). Have the Pizza constructor block set that value of the int field (for its speed) to a random number between 1 and 3 and set the image of the Pizza object to the image saved in the image field. Add an act method whose code (1) moves the object down the screen using the value of the int speed;
Flappy Bird Help!
By jacobgalvan23, with 3 replies.
Last reply by jacobgalvan23, over 12 years ago:
I just ended up dividing it by two like danpost said, it worked perfect. Thanks a lot for both of your guys help!
Error when converting my scenario from PC to Mac
By aminycartoon, with 1 reply.
Replied to by danpost, over 12 years ago:
Please show the code of your Menu world from line 1 to at least the end of the method that line 30 resides (the constructor).
I dont understand the image. code!
By Thrillofit, with 23 replies.
Last reply by danpost, over 12 years ago:
I realized after reading you last post that the 'blueprint' does not fit your description of what you want; but, it can be modified. Also, my suggestion about the changing caption takes away from informing what the bar is for; so, maybe just change the color of the green portion of the bar. Let me try that again:
Problem with getObjectsInRange()
By Jonche, with 26 replies.
Last reply by Jonche, over 12 years ago:
I'm too tired to type properly :P . And yes the animal class has nothing more useful, though it is an "animal" class, I designed myself. This project has no class (except actor and world) belonging to any book scenarios...
Borders?
By SullyFish, with 5 replies.
Last reply by SullyFish, over 12 years ago:
Alright thank you guys!
I need help!
By jmdreyer, with 4 replies.
Last reply by danpost, over 12 years ago:
Try changing lines 29 and 35 to this: <Code Omitted>
Help request: Trying to get two objects to move at the same time using 1 control.
By BingoWasHisNamo, with 5 replies.
Last reply by BingoWasHisNamo, over 12 years ago:
Alright, thank you for the help, I'm testing it out right now, but I'm pretty sure it should fix the problem.
Damage depends on image, and contact.
By kdbailey, with no replies.
I have a game that makes enemies randomly spawn from the sides of the screen, and chase a knight. I've tried animating sword swings but this is a project with limited time, and I don't have the time to make these. I do have images facing each way (left, right, down, up) and since I don't have enough time to animate swinging the sword, I need it to be that when coming in contact with the image that faces the enemy, it doesn't do damage to the knight. I'm confused on where to start mainly, and any help would be appreciated. (This is a project, so any help will be cited with full credit given where due)
Problem with a cheat
By jmdreyer, with 1 reply.
Replied to by Zamoht, over 12 years ago:
Make objects appear at the edge or change the code so that your marble can't move completely to the edge.
Timer
By jmdreyer, with 5 replies.
Last reply by jmdreyer, over 12 years ago:
thank you guys for your help
689
690
691
692
693
694
695
X