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
gif images
By Greenfootnoob, with 1 reply.
Replied to by davmac, over 12 years ago:
Probably you should import the GifImage class and read its documentation.
help with random spawn
By nc-munk, with no replies.
I am making a game for a school project. I need help a random spawn function it is should spawn an asteroid in top for the screen and move down and i cant make them spawn and move my code look in line 27 to 42 <Code Omitted>
Lag in my game
By poon, with no replies.
Hello i'm making a game for my object oriented programming class , i have a world with a scroll based on a project named "Scrolling Man" . that´s the code for the scroll : public void scroll(int cX, int cY) { x = x +cX; y = y +cY; getBackground().drawImage(Background,x, y); } the method is called when an arrow is pressed and it works, but i have a problem. the method makes very slow my game, i tried to reduce the size of the background but that no solves the problem, i removed the method call, and the game have not more lag. Please help me, how can i make the scroll without lag???
Challenge || May 2014 voting
By JetLennit, with 30 replies.
Last reply by JetLennit, over 12 years ago:
This
is where the Challenge page is
HealthBar not losing health.
By Than4tos, with 18 replies.
Last reply by Than4tos, over 12 years ago:
Cheers m8 rly thx alot for the help it's working did not know you could chek it like that hmm nice. just made a quick run through the game and it's working looks like it's done now for the report the boring part. Again thx alot that was the last bit and it was driving me crazy
How do I get my enemy to chase my actor?
By Fang, with 1 reply.
Replied to by danpost, over 12 years ago:
Use the Actor class method 'turnTowards'. You will need to locate the player for that. You can use the Actor class method 'getObjectsInRange' which returns a List object; use the List class method 'isEmpty' with the NOT character ( '!' ) to ensure that at least one element is returned in the list; then, use the List class method 'get' on another instance of the list to get that element from the list and cast that element as an Actor object, saving it in a local variable. With that, you can use the Actor class methods 'getX' and 'getY' to get the location of the actor to use in the 'turnTowa
Storing, retrieving and printing high scores
By karolis, with 4 replies.
Last reply by danpost, over 12 years ago:
There is no way to change the current user while the project is running.
Right placement for Bullet
By kasperk22, with 2 replies.
Last reply by kasperk22, over 12 years ago:
oooh, i see... i think this actually made me realise what double move actually was... thanks
I want to start a new in Greenfoot but it keeps sending me to tutorial.
By Fang, with 4 replies.
Last reply by Fang, over 12 years ago:
Ohhhhhhhhhhhh Thank- you :)
Problem with pointcounter (reference problem)
By kasperk22, with 12 replies.
Last reply by kasperk22, over 12 years ago:
davmac wrote...
I still don't see "shooterpointcounter" ...
yea sorry, i'm a dane and Skydemand is kinda the same as shooter(in danish).. sorry for the mistake
danpost wrote...
Line 75 in your Skydemand class is creating a NEW world object with a NEW pointcounter. This counter is not the same one that your initial world created and will not hold the same value. You need to get a reference to the pointcounter that is already created in the current world. Change line 75 to: <Code Omitted>
oh, i see. yea you are actually right..
Wrong and Right code
By SullyFish, with 17 replies.
Last reply by SullyFish, over 12 years ago:
Okay thank you very much! everything works perfectly!
Just a quick question about Radius Collision...
By Firedudeet, with 2 replies.
Last reply by Firedudeet, over 12 years ago:
Thank you for the quick reply, hit detection works exactly how I wanted to; thank you yet again.
Why this error?
By Rishav_Agarwal, with 5 replies.
Last reply by Rishav_Agarwal, over 12 years ago:
OKAY.....thnx
Pacman game
By dangwang, with 1 reply.
Replied to by danpost, over 12 years ago:
Both of these issues, continuous movement and speed, can be solved by using instance fields. *** background info Fields declared within the class, but outside any methods. Each instance created in the class is given a separate field with the names provided to hold a value for that particular instance (each instance can have a different value for a field given them with the same name). *** An 'int' field can be used to hold the current (or last) direction that the pacman had moved and used to set the continuing movement in that direction if not directed or is unable to change directions
mouseClicked(object) from world
By kasperk22, with 2 replies.
Last reply by kasperk22, over 12 years ago:
ooooh, i see... thanks alot, i actually never ment to write "new Singleplayer"... that was just a dumb fail my me :-)
694
695
696
697
698
699
700
X