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
Using getIntersectingObjects()
By tayaza, with 9 replies.
Last reply by legoman, almost 13 years ago:
danpost wrote...
'getIntersectingObjects' will always return a List object. If there are none to list, it returns an empty list; but, it will never return 'null'.
my bad. I'm much more used to getOneIntersectingObject. I always checked anyways with getIntersectingObjects, for good measure at the least.
create object
By avocasso, with 1 reply.
Replied to by avocasso, almost 13 years ago:
Never mind, I finally figured it out.
2-D fighter Game NEEDS CHARACTERS!
By theKINGhimS3LF, with no replies.
Yeah, I needed to make a final game for my programming class before winter break and I decided on a 2-D fighter game, i am currently using place-holder sprites right now and developing the final look of the characters. but i have run into a problem; i cant seem to think of any characters other than the one i currently am making. I need some help making sprites for the other characters, or at least ideas for the other players.
Here's a preview of the one I'm currently making:
<Image Omitted> Sprite making (as i have learned) is a VERY tedious task when not using a tablet or any other help, i made this from scratch and I intend to keep it simple for the sake of time. all help and Ideas is GREATLY appreciated. Thank you for your time EDIT: i have the updated idle stance for my main character <Image Omitted>
help pls !!!
By Biri3010, with no replies.
hey so i start to write a code like doodlejump but the different is that wenn i click auf start the game plays hisself. the game has two players and the both player should jump up to the next stage ( i think i have to use getNeighbours) the programm shoul look which stage is on the near of the two players and the shoul jump to next stage which hae the small distance and both player they arent allowed to jump on the same stage... ( my english is not so good but i hope u guys understand me ) :) thx
making your own getTop()
By tylers, with 5 replies.
Last reply by tylers, almost 13 years ago:
sorry I don't really get it. :( do you have another code example?
exporting the world as image`?
By erdelf, with 12 replies.
Last reply by erdelf, almost 13 years ago:
thx for your help
Dance dance help!
By poprocks38, with 5 replies.
Last reply by danpost, almost 13 years ago:
There are several elements missing or wrong in the code you are showing here. (1) nowhere are the new Arrow objects being added to the world; (2) Greenfoot.mouseClicked does not take a String argument; (3) the way it is coded, an arrow will be created on each run cycle of the scenario that the '1' key is pressed; and (4) the music will not start on the '1' keypress;
Dynamic World
By moobe, with 4 replies.
Last reply by moobe, almost 13 years ago:
OK, I'm trying to understand, but it's not easy... I will tell you when I've finished writing the code or when I have new problems. Thank you for all of your answers! So long moobe
Checking for Objects in Range (kind of)
By TheKidChameleon, with 2 replies.
Last reply by danpost, almost 13 years ago:
You can still use the list of actors within range about the entire radius of the actor and narrow it down from there by getting the angle of the line between said actor and any potentials around it. If said actor is facing the general direction, then the
adjusted
difference between the two angles must be equal to or less than the range of the angle allowable. The general
idea
of how the list returned can be narrowed down is demonstrated in the code below; be advised, however, that this code is not plug-n-play:
2D world generation
By Game/maniac, with 7 replies.
Last reply by Game/maniac, almost 13 years ago:
I still need help with generating caves in my world
What's wrong with this?
By DoomN1nja, with 2 replies.
Last reply by DoomN1nja, almost 13 years ago:
Sorted. Thx.
Need Some Help
By ddavid33, with 8 replies.
Last reply by actinium, almost 13 years ago:
Well tyler trusts you and thats ok. Just saying when you upload a scenario with the code anyone can dig in and give you feed back. If you want to have feed back in private by e-mail then thats up to you. Good luck :-)
Nullpointer exception to nothing?
By Minion1, with 10 replies.
Last reply by actinium, almost 13 years ago:
Just a guess but should the line <Code Omitted> be <Code Omitted>No sorry, ignore the above. On the design side i noticed readMapFile returns void, it would be better to return type String array , the map from the file in effect. Then any method that wanted the Data file in any project could use the method and the last line in the method could be moved to the world constructor with the readMapFile() method as a parameter.
Image Change
By BradH, with 11 replies.
Last reply by BradH, almost 13 years ago:
oh, thank you
wrong values
By erdelf, with 5 replies.
Last reply by erdelf, almost 13 years ago:
thx danpost. it works without problems now
914
915
916
917
918
919
920
X