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
Two Player Game Movement Stuck
By zainsou, with 1 reply.
Replied to by danpost, over 8 years ago:
zainsou wrote...
I'm making a two player game and the movement isn't working. When there is only one actor on the screen it works fine but when both are on at the same time some freeze or only one can move at a time. The code for the movement is << Code Omitted >> How do I make it so both actors can move smoothly
Only thing I see giving it a quick once over is the excessive use of getKey that will prevent one fighter from being able to jump.
Error with getOneIntersectingObjects
By KKobra, with 3 replies.
Last reply by danpost, over 8 years ago:
KKobra wrote...
The same error
Show your revised act method. Also, show the new error ouput.
Have an Actor Move Back and Forth between Walls
By ann241, with 4 replies.
Last reply by danpost, over 8 years ago:
nolttr21 wrote...
@WeNeedHelp22 you should create a new discussion thread for the thing you need help on
That was already done prior to the unnecessary injection into this discussion thread.
Adding Objects in the World with ArrayList?
By RårördaLingon, with 2 replies.
Last reply by RårördaLingon, over 8 years ago:
Thank you so much! It makes sense to me!
Is the weather class link stilll broken?
By dcummins, with no replies.
From the discussion threads I found this
danpost danpost2016/12/22#
I got the same thing. It may be that all this discussion is for naught. Apparently, the link to the data is broken for some reason. Whether this is temporary or permanent, I cannot say.
Multiplication Game
By Endo7, with 1 reply.
Replied to by danpost, over 8 years ago:
Endo7 wrote...
Hi, I'm making a game for a project which is educational. I want to have a maths question pop up, to which the user has to move the object into the goal which contains the correct answer. However, I'm having problems coding the multiplication question and answer part. And I can't seem to find anything that helps. Any help would be much appreciated. Thanks
What have you tried? Show your attempted code.
pick up objects
By L0st4t1m3, with 1 reply.
Replied to by danpost, over 8 years ago:
L0st4t1m3 wrote...
So I'm trying to make a game and in the game, I need my character to pick things up and make them disappear kinda like in the crab world scenario with the worms. Would I be able to use the same code and change thing a bit or would I have to write a new code for it?
I guess if you named the objects that were picked up "Worm" objects that the same code, exactly, would work.
How to add a score's using counter class
By DanMyMan, with 12 replies.
Last reply by danpost, over 8 years ago:
Please show the Dot class codes.
Keeping scores between different worlds
By Yomi, with 2 replies.
Last reply by Yomi, over 8 years ago:
Worked perfectly, thank you for the help. :)
AddObject programatically by time, help please.
By TomazVDSN, with 9 replies.
Last reply by TomazVDSN, over 8 years ago:
thanks
greenfoot error of sound
By puskalpulami, with 1 reply.
Replied to by danpost, over 8 years ago:
Can you hear me now?
Scroller with a bounded Y-axis, but unbounded X-axis
By Geno_Frofino, with 4 replies.
Last reply by Geno_Frofino, over 8 years ago:
Thank you so much! That worked like a charm!
Setting the Background getWorld().setBackground(new GreenfootImage("nameOfImageFile.png")); not working.
By RandomLittleWeeb, with 3 replies.
Last reply by danpost, over 8 years ago:
RandomLittleWeeb wrote...
can u help me find the command where u can resize the picture.
You can resize a
GreenfootImage
object with the
scale(int, int)
method.
Greenfoot error
By KKobra, with 1 reply.
Replied to by danpost, over 8 years ago:
You probably need to insert the following at line 29 in your FlyingMod class (provided you have not edited the code since your posting): <Code Omitted>
How to make ai fire at the player's spaceship?
By Jol159, with 9 replies.
Last reply by danpost, over 8 years ago:
Jol159 wrote...
It works but no idea what if statement to use to stop the laserbeams from spawning like mad. Any ideas?
It depends on what behavior you are wanting -- periodic or random timing of shots would be one unknown; if periodic, how often would be another unknown; if random, the possible ranges in timing would be the second unknown.
267
268
269
270
271
272
273
X