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
Start command is weird. Help!
By Zamoht, with 6 replies.
Last reply by Zamoht, over 13 years ago:
Thank you very much! I tried some different things, and I found out that the start() works fine with objects like the wombat from the tutorial scenario though it acts weird when I add "if" to the code like here. <Code Omitted>
i need help as soon as possible
By Benedict, with 14 replies.
Last reply by Benedict, over 13 years ago:
it doesnt work and matter anymore, my teacher has the project already, but anyway, thank you all for your help :)
intersects help
By TimbooXD, with 5 replies.
Last reply by TimbooXD, over 13 years ago:
it works thanks
Removing a object help
By DAustin15, with 1 reply.
Replied to by danpost, over 13 years ago:
Add a TitleDeeds variable to your sub-class of World, call it unownedDeed and set it to 'null'. When one is spawned, instead of 'addObject(new TitleDeeds(...), x, y)', use 'unownedDeed = new TitleDeeds(...); addObject(unownedDeed, x, y);'. Then at the end of a player's turn 'if (unownedDeed != null) { removeObject(unownedDeed); unownedDeed = null; }'. Of course, if an unownedDeed is purchased, you must change the value of unownedDeed back to 'null'.
Making a the Bal move with a variable speed that changes when it hits something
By bakkie, with 1 reply.
Replied to by MatheMagician, over 13 years ago:
Greenfoot gone weird
By gusbus123, with 10 replies.
Last reply by gusbus123, over 13 years ago:
k ill take a look at that. I tried it once and i failed but ill try it again once im done with some other parts since i know a lot more than 15 days ago :P
is there any reason that the class name is to be shortened in the 2.2.1?
By won0c, with 8 replies.
Last reply by won0c, over 13 years ago:
I have no problem on the 2.1.2 version !!
Saving and Loading
By GregC246, with 4 replies.
Last reply by GregC246, over 13 years ago:
Found the answer
here
.
Problem with Counter and Text
By Prudene, with 2 replies.
Last reply by danpost, over 13 years ago:
Create new sub-classes of Actor and name then 'GoodMessage' and 'EvilMessage'. In itheir constructors, create GreenfootImages, either with text or draw text on it. You could also use another program to create the images showing the text an import the images (pre-setting them to the actor classes). You can now create and add the message objects to the screen when a counter reaches 0.
Greenfoot Error
By Benedict, with 6 replies.
Last reply by tylers, over 13 years ago:
use this in in one of the actors you want to use: <Code Omitted>
this is an example
this is an in a class called somthing.
<Code Omitted> hope you get it.
Boulder Dash exam project
By fisch3r, with 3 replies.
Last reply by fisch3r, over 13 years ago:
Ahh, I get it now. I reused some code from an earlier project. Thanks a lot!
gravity help
By tylers, with 1 reply.
Replied to by limefortheworld, over 13 years ago:
Bounces up and down? Try on line 43 setLocation (getX(),(354+tall)). It seems like the tall value is the full height of the image.
How do i make lasers?
By kevinchaoo, with 1 reply.
Replied to by erdelf, over 13 years ago:
look at this: http://www.greenfoot.org/scenarios/5518
Integration of Videos into a Greenfoot Project
By alexanderyoyo, with 6 replies.
Last reply by tylers, over 13 years ago:
i don't see anything wrong in that code.
try
can you look at you images to see if you have got any repeated images.
see in the world class that you nothing resetting the int called frames.
i will edit this when i think of more answers :p beware make sure you compress your images as it will not upload onto greenfoot
Difference between intersecting and atoffset(0,0)
By erdelf, with 1 reply.
Replied to by davmac, over 13 years ago:
Yes. "getOneIntersectingObject" finds an actor whose bounds intersect this actor's bounds; "getOneObjectAtOffset" finds an actor which intersects (covers) the point at offset 0, 0 from this actor's location.
960
961
962
963
964
965
966
X