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
3Dish
By JetLennit, with 12 replies.
Last reply by MatheMagician, about 11 years ago:
Mode 7 is a
technique
for programming a background texture on the ground. Its pretty much just an efficient mathematical equation that some people have converted into code. It is not an engine or a base for you to build a game out of.
How to change the image upon different key press for an actor? SetImage and GetImage help
By nathan1610, with 1 reply.
Replied to by Gevater_Tod4711, about 11 years ago:
In Greenfoot almost every image you use is a GreenfootImage so you should create GreenfootImages of all the images you want to use: <Code Omitted> If you got this images in your class you just need to change the images like this:
Using Arrays in Java.....
By LearningProgramming, with 14 replies.
Last reply by Gevater_Tod4711, about 11 years ago:
@LearningProgramming Like danpost already said you don't need a class for any card. In
my Black Jack game
you can see that I just changed the values of the cards and used one card. But if you try to programm this using eclipse that will be realy complicated because eclipse at all is not easy to use and it hasn't got a graphical surface like in greenfoot. Also there are no acting cycles... You would have to do everything by yourself. So you better try to create this game using Greenfoot.
Beam Intersects object
By FlyingRabidUnicornPig, with 1 reply.
Replied to by FlyingRabidUnicornPig, about 11 years ago:
Never mind, I figured it out. Here's the code if interested: <Code Omitted>
Changing Worlds Helps
By SWAG, with 2 replies.
Last reply by FlyingRabidUnicornPig, about 11 years ago:
edit: "getIntersectingObject" should be "getOneIntersectingObject"
Changing Scrolling SuperWorld
By JetLennit, with 5 replies.
Last reply by JetLennit, about 11 years ago:
Thank you i think i have changed it now
Global variables
By mattjames, with 1 reply.
Replied to by danpost, about 11 years ago:
Exactly what scope to you want this variable to have? Are all actors that use it of the same sub-class of Actor? or just actors? Does the world need access also?
Enlarging Actors
By mattjames, with 1 reply.
Replied to by danpost, about 11 years ago:
Please refer to the discussion on
How to make an image larger
.
IOException
By Ragtime, with 10 replies.
Last reply by Ragtime, about 11 years ago:
It works now, thanks. I used the equals() and return statements. I also replaced "0" by "stop" in the file (I don't know if this had any effect)
Megaman
By jain11, with 1 reply.
Replied to by sametguzelgun, about 11 years ago:
Greenfoot.setWorld(new Level());
World swapping
By Sly_D, with 3 replies.
Last reply by Sly_D, about 11 years ago:
Thanks man really helped appreciate it :)
How to make an image larger
By JetLennit, with 48 replies.
Last reply by JetLennit, about 11 years ago:
Thank you all!
I need ideas and help
By JesusJesus, with 4 replies.
Last reply by JesusJesus, about 11 years ago:
Thanks i will test it :)
Kill an object with another
By Solringolt, with 1 reply.
Replied to by danpost, about 11 years ago:
The signature for the 'getOneIntersectingObject' method in the Actor class API is: getOneIntersectingObject(Class clss) The class must be specific within the parenthesis. The method returns a value of Actor type, and must be used immediately or saved in a field for future use. It should also be checked to ensure an object of that type was placed in the field (check for a 'null' value). Also, your 'getWorld' "calls" need closed sets of parenthesis after them to tell the compiler that a method is being called, instead of the compiler looking for a variable (or field).
isKeyDown with 2 Keys
By mufusion, with 14 replies.
Last reply by mufusion, about 11 years ago:
now its working like i wanted it. Well, Thats it! im Finished. it dont look wery good and is not as funny as the games made by professionals but i only had 1 and a half week and nearly no experience ( we worked with the first 3 chapters of the book in school, thats nearly anything we learned about the topic) Thank you very much for you support, not just in the topics i created, also in old topics i read and your help not only helped me, it helped also my teacher who is too new at greenfoot and he helped with your help the others in school. if you want it, i mention you in the game cr
845
846
847
848
849
850
851
X