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
Help - storing scores in a text file
By Leenza, with 3 replies.
Last reply by fejfo, over 11 years ago:
in the begining I had a lot of trouble with this to but I made an IOhelp class and now I understand it you can take a look at it
How can i put my program up here?
By changchiyou, with no replies.
i made lots of char and all of them have their own program, can i put on here in a easy way?
Colliding
By aliozkan, with 45 replies.
Last reply by aliozkan, over 11 years ago:
I did it by putting everything in the act method to a 'everything()' method then I did if else statement (this != null), if part is time is ticking, else part is it is not. So it is working. I had some issues on printing the time in the middle on the scoreboard and removing the other one but now I figured it out. But... I have another problem actually not a problem but a improvement, so I have 5 different enemy planes in the game and I used this for giving numbers to them. <Code Omitted>But now I wanted do them increasing a
Location
By MrGigglesII, with 1 reply.
Replied to by danpost, over 11 years ago:
Please elaborate. It may be that the one class should not extend the other. Say you have a ClassA and a ClassB. If you cannot say a ClassB object is a type of ClassA object, then ClassB should not extend ClassA. For example, if I had a Car class, I can extend it with Sedan, Coupe, and Wagon (these are types of cars); but I should not extend it with Bicycle, WindShield or Truck (these are not cars). However, with the code provided, it looks like you are trying to set field values 'x' and 'y' by calling a method that requires the actor be in the world. These fields are created and ass
HELP
By Leenza, with 3 replies.
Last reply by danpost, over 11 years ago:
Leenza wrote...
That is all that is in the powerup class.
Then that is your problem. The code that times it and removes it should be in that class.
HELP
By MrGigglesII, with 8 replies.
Last reply by MrGigglesII, over 11 years ago:
Sorry. Thanks for the help.
Help pls ;)
By moksha92, with 10 replies.
Last reply by danpost, over 11 years ago:
moksha92 wrote...
it just doesnt do the win method it only does the nextlevel method... :(
Question 1: what class does your 'world2' class extend? I ask this because if 'world2' extends 'world' (and not 'World'), then any world created from the 'world2' class will also be a 'world' instance. Provided you never add any more levels, you can change the first if clause to: <Code Omitted>or you can just switch the order of the 'if' clauses (check for 'world2' before 'world'):
Level scrolling help
By Cytotoxin, with no replies.
Hello I am planning to make a game which will have a big level, 1600x3600 but I want to make the players view to be 800x600 and scroll when moving How would I do this?
Help- removing objects
By Leenza, with 7 replies.
Last reply by Leenza, over 11 years ago:
And that works without having the power up code (sorry if my formatting is off I'm doing this on my phone)
Bild größe ändern
By Greenfoot_rookie, with 15 replies.
Last reply by Super_Hippo, over 11 years ago:
In meinen
Bomberman
Spiel habe ich es so gehandhabt, dass die KI, wenn sie an eine Kreuzung kommt, schaut, in wie viele Richtungen sie sich bewegen kann. Dann wählt sie davon zufällig eine aus.
My car needs to detect the upcoming traffic signal and stop or go.
By VivekRajagopal, with 2 replies.
Last reply by davmac, over 11 years ago:
Furthermore, it appears you've created two accounts on this site. Please only use one account.
Help me solve it
By Dudeson, with no replies.
Hello , so I am writing because I need help making a game. Maybe for first time i have bitten more then I can chew.Well this is my game. <Image Omitted> As you see these cylinder are spinning around each other , for an example orange cylinder stays in place while blue one spins around him. IF i press space , game use method canSee() to check if blue cylinder see wall he suppose to stick to wall and then orange ball should spin around blue cylinder. But there is a problem. Firstly I need to make blue cylinder know how to position it self correctly on wallFoward class. As I understand i need to get wall that blue cylinder can see coordinates and then position it so he would stick correctly on wall. I wound out that you can call class XY but I will have a lot of same classes in world and all of them has their own index and it becomes tricky again. I was trying to solve it by my self but I can't find solution. It's my first game.
cannot find symbol addobject
By greenfoot_user, with 1 reply.
Replied to by davmac, over 11 years ago:
In general, if you're getting some sort of error, please post your code - at least the part where the error occurs (and indicate which line). In this case I guess you are trying to call the World class 'addObject' method, which has a capital 'O'. In other words it is 'addObject' not 'addobject'.
Switching between worlds ...
By JDRSkiing, with 1 reply.
Replied to by JDRSkiing, over 11 years ago:
dont worry got it!
I want to remove the object at top of the player
By ziLaK, with 4 replies.
Last reply by ziLaK, over 11 years ago:
never mind it does work
581
582
583
584
585
586
587
X