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
Getting Error - " Java heap space"
By Spicy0506, with 6 replies.
Last reply by danpost, almost 9 years ago:
Spicy0506 wrote...
I figured it out < Code Omitted > I had to change the "0 < amount" to "i < amount" simpler mistake
Simple, yet easy to miss (as apparent I had done). Sorry. Glad you found it.
login mysql error when program run
By divinity, with 1 reply.
Replied to by divinity, almost 9 years ago:
hi pple i got the program to work, i had set the setvisible to false instead of true apparently
Help me with my game creation."aa"
By frequency, with 5 replies.
Last reply by frequency, almost 9 years ago:
Thanks,i will!
changing worlds only when one box is pressed
By jacquelinereilly, with 1 reply.
Replied to by danpost, almost 9 years ago:
It might help if you pass the focus-able text objects to the MenuSelector object and put the key control in its class. Then, have the world test a 'selected' field, which is set to the focused text (or its index) when "enterr" is pressed, to proceed to the appropriate world.
Bullet Generator
By TheSlorrow44, with 2 replies.
Last reply by TheSlorrow44, almost 9 years ago:
danpost wrote...
First, unless there is a visual need to have the generator as an Actor object, it should not extend the Actor class. Second, better is to use int fields to track number of each type bullets and create each as needed, rather than creating a number of them for later use.
Thanks!!!
how to make the camera follow my game character
By JoyBajwa, with 1 reply.
Replied to by danpost, almost 9 years ago:
Please refer to my
Scrolling Tutorial
scenario.
Sum of array
By Super_Hippo, with 3 replies.
Last reply by danpost, almost 9 years ago:
Actually, the binary equivalent to 0.4 above was incorrect; but, my point still holds. The correct binary value should be 0.0110... with the fractional part repeating.
Counters not working
By Kordus, with 5 replies.
Last reply by danpost, almost 9 years ago:
'Counter' is a class name -- it does not refer to a particular Counter object. You need a reference to the particular Counter object whose value needs adjusting there. Insufficient code given to help in this respect.
Bullet direction
By Azzzy24544, with 1 reply.
Replied to by danpost, almost 9 years ago:
I think the easiest way is to set it by the actor that creates it: <Code Omitted>
Help with one.setLocation(one.getX()+x2,one.getY()+y2); and List<Statment> everyone = getWorld().getObjects(Statment.class);
By Djolex, with 1 reply.
Replied to by danpost, almost 9 years ago:
If this deals with scrolling, maybe this will be answered by the scrolling tutorial linked to your other discussion thread. (better to let the actor move and have the world adjust everything depending of what limitation you place on the actors location)
Scrolling man
By Djolex, with 1 reply.
Replied to by danpost, almost 9 years ago:
See my
Scrolling Tutorial
scenario.
Does using inheritance slow down performance?
By SuperNinja, with 1 reply.
Replied to by danpost, almost 9 years ago:
You will need to show what codes you are using to determine what the cause of your "unresponsiveness" is due to. It actually might be best to upload the project while making the source available so that iit can be properly diagnosed in a much more timely fashion.
Removing an item that was never touched
By Echarch11, with 7 replies.
Last reply by davmac, almost 9 years ago:
일리아스 wrote...
I did the logic and im quite sure it works.
It should work with the current version of Greenfoot, provided you haven't called the World's setActorOrder(...) or setPaintOrder(...) methods. If you have used either of those methods (with an ordering), I think it won't work. (And as you've discussed already, it might not work in future Greenfoot versions).
Rotations from a point
By Echarch11, with 6 replies.
Last reply by danpost, almost 9 years ago:
Actually, I meant this: <Code Omitted>The documentation shows the constructor used to create an image of a specified size, plus the methods to get the width and height of an image and the method to draw an image onto another one. A cursory glance over the documentation would lead to most, if not all, of these. Like I said, my first post basically said it all, draw (line 3) the image (line 1) at (0, 0) (again, line 3) on
Shooting a bullet
By Echarch11, with 8 replies.
Last reply by xbLank, almost 9 years ago:
This is correct. Thank you. Edited.
297
298
299
300
301
302
303
X