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
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
Moving player from world to world help
By Salcrainia, with 13 replies.
Last reply by Salcrainia, over 11 years ago:
Yes all of that has been removed and kept within the different levels code, thanks for the help although I did need to add the objects for score and lives so that they would carry over.
Maze scenario
By K@pil, with 1 reply.
Replied to by Super_Hippo, over 11 years ago:
You can create a new class and add it to the world when the ball reaches the finishing block. This object should have an image with the wanted string on it.
I just want to stop the car while the traffic light is Yellow, And should move the car when the traffic light is Green.
By VIvek_Rajagopal, with 2 replies.
Last reply by danpost, over 11 years ago:
(1) Line 2 can be removed as no lists are being referenced in the class; (2) Line 3 can be removed because the java.lang.Object class is automatically available to all classes; (3) Line 19 declares a variable that is not later used within the method; it can be removed without changing the way the method currently executes (I am not saying to actually remove it, here); (4) Line 23 compares a new object to a previously created object; they are two distinct objects; that is, they are not the same object (however similar they may be) and the comparison will show that they are not the same obje
How to getImage() from a location by using getIntersectingObjects() and compare a default image ?
By VIvek_Rajagopal, with 3 replies.
Last reply by VIvek_Rajagopal, over 11 years ago:
I have created like this, <Code Omitted>Being honest, I don't know how to understand things from the API documentation. Please tell me a way to stop and move the car according to the detected image.
581
582
583
584
585
586
587
X