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
Error while writing, can't compile Greenfoot projects
By KNACKon, with 1 reply.
Replied to by moraidai, about 6 years ago:
i think u shopuld u some fromage et le baguette "Error while writing ...class...: The process is not possible with a file that has an open environment which is assigned to a different user." u have to "setposition to =fromage"
Super_Hippo?
By moraidai, with no replies.
BOnjour le Super_Hippo cava?
Fromage?
By moraidai, with 4 replies.
Last reply by CSBossmann, about 6 years ago:
<Video Omitted>
setPaintOrder not working
By APCSP-6, with 5 replies.
Last reply by moraidai, about 6 years ago:
monsieur bonjour
Making the World bigger
By APCSP-6, with 2 replies.
Last reply by APCSP-6, about 6 years ago:
Thank You!!
Key released?
By whattheheck, with 10 replies.
Last reply by danpost, about 6 years ago:
Replace the following two methods in my Car class above: <Code Omitted>
new world with array
By Starlord_20, with 3 replies.
Last reply by danpost, about 6 years ago:
Starlord_20 wrote...
I have some subclasses of MyWorld called Level_1 , Level_2 ... I wanted to code a method in my Actor that can set the Level: << Code Omitted >> that is what I made so far... is there a better way?
Better might be the following (so as not to have so many
World
objects in memory at one time):
Move Actor to Location of click of mouse
By APCSP-6, with 17 replies.
Last reply by APCSP-6, about 6 years ago:
When I changed the code, the Waitress stopped "glitching" so I just needed to change the code. I think that was the only thing I needed to work on with the Waitress besides getting her to appear in front of the image I got of the counter. Thank you guys!!
Problem when resetting game
By CodesForFun, with 10 replies.
Last reply by danpost, about 6 years ago:
Sorry, but this is getting to be unfamiliar territory for me. Only suggestion I could make is to upload the scenario with source to allow others to possibly work out a fix. What kind of system are you running? (Windows, Mac, ...)
SetImage problems
By jay4221, with 3 replies.
Last reply by Yehuda, about 6 years ago:
Show all the code of the class.
Glitchy Actor
By APCSP-6, with no replies.
So, my Waitress Actor is glitching when she moves. How do I stop the actor from glitching?
Pong Score
By Sakura.Waifu, with 1 reply.
Replied to by danpost, about 6 years ago:
Sakura.Waifu wrote...
Hi, I have a problem with my Greenfoot pong game. It is for two players and I want to add a score but do not know how. Can someone please help me? i can not find anything online that helps me.
Please refer to my
Value Display Tutorial
scenario. Probably best to have your world retain the scores rather than the players.
Game over screen
By CieloMungcal, with 1 reply.
Replied to by danpost, about 6 years ago:
CieloMungcal wrote...
how do i make a game over screen?
Usually done by adding a new
World
subclasss.
Creating 'car' that can drive with arrow keys
By whattheheck, with 1 reply.
Replied to by danpost, about 6 years ago:
whattheheck wrote...
I'm trying to make a car object that can drive around my world using the arrow keys for direction. I have the code below, but my car object isn't appearing within the world << Code Omitted >>
You need to use the
addObject
method for any actor to appear in the world.
Need to access attributes of superclass from subclass
By GrucifyMe, with 1 reply.
Replied to by danpost, about 6 years ago:
Laser should NOT extend Player (a laser is not a player). Your line of code should get x and y from player, not from the image of the player.
137
138
139
140
141
142
143
X