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
Move Actor to Location of click of mouse
By APCSP-6, with 17 replies.
Last reply by APCSP-6, over 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, over 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, over 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, over 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, over 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, over 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, over 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.
Need Help- Code will not compile
By emfish15, with 1 reply.
Replied to by danpost, over 6 years ago:
I believe that the first
addObject
line should be: <Code Omitted>
Display text on world from variable on non actor or world class
By whattheheck, with 3 replies.
Last reply by danpost, over 6 years ago:
Move line 12 to line 3.
Customers (Diner Dash)
By APCSP-6, with no replies.
I need to create character to act as the customers for my Diner Dash game, but I can't seem to find any to work anywhere. Is there any way that I could take two actor people from Greenfoot and put them together. Follow-up is there any possible way that I could get them to sit and stand... and move? If that makes sense.
Get An Actor Behind An Image
By APCSP-6, with 1 reply.
Replied to by danpost, over 6 years ago:
Use the following line right after the
super
call in your
World
subclass constructor (using the appropriate class name): <Code Omitted>
NullPointerException when trying to speed up paddle
By CodesForFun, with 13 replies.
Last reply by CodesForFun, over 6 years ago:
I figured it out! When I declared theFog to make it so that I could call Fog from another object, I didn't input <Code Omitted> which returned an error because it was trying to call something that didn't exist!
Increase rate of spawning for enemies
By MoleKingQ, with 2 replies.
Last reply by MoleKingQ, over 6 years ago:
Thank you.
Start screen
By teesore, with 1 reply.
Replied to by danpost, over 6 years ago:
<Code Omitted>
138
139
140
141
142
143
144
X