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
Jigsaw Puzzle
By sri.s, with 5 replies.
Last reply by danpost, almost 8 years ago:
sri.s wrote...
https://www.youtube.com/watch?v=MpUf9OkoLE8&t=1077s check this one
If you want all pieces to look the same (barring edges).
Ak47 can't be put in help.
By Bandito, with 3 replies.
Last reply by Bandito, almost 8 years ago:
nvm the computer just didn't decide to work
How to do it
By Adi18, with 6 replies.
Last reply by danpost, almost 8 years ago:
You could separate the area into individual worlds that will fit the screen.
The game pauses when switching worlds
By Arakniode, with 11 replies.
Last reply by Arakniode, almost 8 years ago:
danpost wrote...
What is the purpose of the act method with the call to 'getTile' in the TileObject class? Having and Actor object (or null) returned and not doing anything with it is like doing nothing. You can remove the act method from that class. The 'getTile' method in the Tile class is also quite pointless. To call the method, you would need a reference to the 'this' that is returned. The 'x' and 'y' parameters are not used in the method and therefore have no effect on the returned value (and never will if you absolutely return 'this').
Thanks for the answer! It's true that
Counter makes game Laggy
By Skleyrow, with 8 replies.
Last reply by danpost, almost 8 years ago:
Skleyrow wrote...
Its a Bomber man Game so i want to have a power up which changes the game speed.
The power up should only make the bomber man actor move faster. You would not want the enemies to move faster as well. Then, what would be the point of the power up (in fact, it may make it a negative power up as quicker accurate reaction times would be needed by the user to avoid the enemies). What you want to do is regulate the speed of the bomberman with a timer to produce a delay between each step in its movement. Then lower the limit of the timer to allow the actor to move more
Randomly place objects
By Heet_Patel, with 6 replies.
Last reply by danpost, almost 8 years ago:
You cannot call 'addObject' from an Actor class without first referencing a world to add the object into. Also, there is this:
danpost wrote...
The XWorld class has this method: << Code Omitted >>
which should be a big hint.
Mouse dragging and collision
By maenstru56, with 19 replies.
Last reply by maenstru56, almost 8 years ago:
It works perfectly! Thank you for all the help and the patience, I learned how to do a lot of stuff from you, keep it up :)
Counting a class' objects
By MirunaTele, with 3 replies.
Last reply by MirunaTele, almost 8 years ago:
Thanks very much!
What's the problem? :((
By ORSODO, with 1 reply.
Replied to by Super_Hippo, almost 8 years ago:
The level1 method is only executed once in the very first act cycle (when this object is created). Chances are that you can't press 1, 2 or 3 that quickly.
How can i use those classes (see in the topic) in my scenario
By frequency, with 29 replies.
Last reply by Super_Hippo, almost 8 years ago:
Where is your saveHighScore method now? It seems like it isn't in the MainMenu world anymore.
Non static method in static context
By Paul12345, with 1 reply.
Replied to by danpost, almost 8 years ago:
If only one of the type of object you need the coordinates of are in the world, you can use: <Code Omitted>If using this in an actor class prefix 'getObjects' with 'getWorld().'.
WHY DOES THE FUCKING PROGRAMMMMMMMMMMMMMNMN WONT WORK :(:(:(:(:(:():((/)Tassaduiahfoiaeög
By IHRHUREN, with no replies.
I TRIED TO USE THE DEBUGGRRAHF AS WE(HSLL THE REST OF THE BUSPFHAOAFUOIFA AND NOTHING WORKED
FICKEN wrote...
EIN HURENSOHN BLEIBT EIN HURENSOHN
Detecting Color of the Pixel
By Flare, with 8 replies.
Last reply by Flare, almost 8 years ago:
It is important at all times. If PlayerOne is not on the red portion of LineOne, then it needs to reset.
How to save world
By Paul12345, with 1 reply.
Replied to by danpost, almost 8 years ago:
You should be able to save the worlds by manually creating the specific world you want to add objects into. Without a more clear view of what you are working with, I cannot guarantee it will work for you, however.
Snake Game
By ORSODO, with 2 replies.
Last reply by danpost, almost 8 years ago:
The 'design' method should only be executed once when the actor is created. Remove the call from the 'act' method and add a constructor block to the class: <Code Omitted>You could replace the call to 'design' in the constructor block with the code within the 'design' method and then delete the 'design' method from the class.
288
289
290
291
292
293
294
X