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
Simple Startup Graphic?
By askgriff, with 7 replies.
Last reply by danpost, about 11 years ago:
Your world constructor should look like that below. And you should add the 'started' method. <Code Omitted>
arrays
By manish123, with 5 replies.
Last reply by manish123, about 11 years ago:
ok thanks guys! and yes it is only one actor doing it so it should run smoothly!
Graphics2D
By Zamoht, with 1 reply.
Replied to by Zamoht, about 11 years ago:
Oh never mind.. Just changed the first line to the following: GreenfootImage temp = new GreenfootImage(texture.getWidth(), texture.getHeight()); Before: http://i.imgur.com/GjJ2uOb.jpg After: http://i.imgur.com/wfOMDfJ.jpg I hate when I make mistakes like that.
Help with this Code!
By tartags11, with 9 replies.
Last reply by tartags11, about 11 years ago:
I added in the act() method into the world and it worked!!!! Thanks so much!!
Subclass of GreenfootImage
By Zamoht, with 3 replies.
Last reply by Zamoht, about 11 years ago:
Oh never mind.. I don't get why I couldn't make it work last time I tried. I ended up writing the following and it works fine. public class MyImage extends GreenfootImage { public MyImage(int width, int height) { super(width, height); } }
declaration of vector
By dimas_ant, with 2 replies.
Last reply by Entity1037, about 11 years ago:
<Code Omitted>It's not very complicated.
how do you upload a scenario?
By mrwhales, with 3 replies.
Last reply by danpost, about 11 years ago:
You are welcome. Oh, and you can adjust/zoom of the image that is to represent your project on the site.
Faster way to place objects?
By ShoutToUs, with 2 replies.
Last reply by MatheMagician, about 11 years ago:
When it comes to pacman, I think the fastest way would be this: <Code Omitted>
[Help]How to make Standby and move a object with animation
By fayde, with 5 replies.
Last reply by fayde, about 11 years ago:
Sorry :(
reading and displaying information
By dimas_ant, with 5 replies.
Last reply by dimas_ant, about 11 years ago:
thank you so much, I could do if you want to place a button is click on a certain object how to do?
my gaming scenario is having lag or low on fps suddenly
By javanoob, with 3 replies.
Last reply by javanoob, about 11 years ago:
nvm i fixed it XD . it was all the background program i had while i was running greenfoot but thx btw XD
Shaped image drawing
By Zamoht, with 7 replies.
Last reply by Zamoht, about 11 years ago:
I found
this
great answer on stackoverflow and rewrote it a little for Greenfoot.
Create a grid that outlines squares where objects can be placed?
By Entity1037, with 6 replies.
Last reply by Entity1037, about 11 years ago:
Nevermind, I got it! ScrollingX and ScrollingY were the same thing as xcorrect and ycorrect.
help with AI
By manish123, with 3 replies.
Last reply by danpost, about 11 years ago:
You give the class of the object to return. So, instead of 'boolean', you would use 'Points'. And instead of returning 'true' or 'false', you would return a Points object or 'null'. By convention, method names should always begin with a lowercase letter, so I changed 'Available' to 'available'.
Switching Images
By David.Budnick, with 7 replies.
Last reply by danpost, about 11 years ago:
Then, the size of the snake needs to be determined before the snake is placed into the world. This means that it will need a value passed to it, to let it know what size to be. You need a Snake class constructor like what follows and you need to move the score field to the Hedgehog class with a 'get' method that returns the score. <Code Omitted>In your world constructor, or a method it calls, create the snake object with 'new Snake(0)'
784
785
786
787
788
789
790
X