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
Setting custom image
By RadiantCheddar, with 1 reply.
Replied to by danpost, about 11 years ago:
Literal string values must be placed between a set of double quotes: <Code Omitted>
There are two object in the world. One object should move downward, and when it is in the same level as the object at the bottom. The object at the bottom should upward. How do you make that?
By grimancepizza, with 1 reply.
Replied to by davmac, about 11 years ago:
Try to break the problem down and ask for help that's specific to the part you're trying to accomplish right now. (Examples of how to do this are
here
, see sections 3 and 4 in particular).
Diagonal Movement
By Programmer1998, with 1 reply.
Replied to by danpost, about 11 years ago:
Probably the best way to go about the movement is to have one Checker class with an int field to hold a value that reflects what type of piece it is (positive values for white, negative values for red; '1' for a blot and '2' for a king). The int field can then be used to determine the possible moves for the piece (the location of the piece and of the other pieces on the board must also be taken into account). The int field can also be used to determine the image the piece is to have. Then, the world would control whose turn it is and detect and control piece movement. The validity of any m
Skipping Through Worlds
By ando600, with 2 replies.
Last reply by ando600, about 11 years ago:
Thanks. Didn't see that. Dumb mistake.
Hangman Game Problem
By Tommy99, with 9 replies.
Last reply by Tommy99, about 11 years ago:
Alright, I took your advice again and got some help from StackOverflow, and I think I understand it much more now. Thank you very much for your help.
Loading next segment
By sse0005, with 2 replies.
Last reply by sse0005, about 11 years ago:
Thanks, that was the problem.
Class not acting on input data:
By ando600, with 3 replies.
Last reply by ando600, about 11 years ago:
Thank you! Also, your bar class is awesome. Thank you for all of your help to this forum.
Writing to a file
By someone1, with 3 replies.
Last reply by danpost, about 11 years ago:
First thing: using 10 different files is not very efficient -- especially since you have a limited amount of data in each file. Better would be to have 10 records in one file. Each record could be parsed into its individual fields. A double array can be used to store the fields: <Code Omitted>It does not matter what fields are modified -- just output the data for the entire file when needed. No help can be provided for outputting the file without your attempted code.
Asteroid scenario : Collision Detection & Scoreboard
By Liam1989, with 2 replies.
Last reply by danpost, about 11 years ago:
@ando600, I do not think that Liam1989 is being demanding, but putting his assignment up on the forum, which no help will be provided for. Only specific help with programming issues are provided. Attempted code should be posted before any help is given.
Saving data for a pokemon clone
By SaxOps1, with 3 replies.
Last reply by danpost, about 11 years ago:
SaxOps1 wrote...
How much can I use the UserInfo data storage to save things- like player name, a list of pokemon in party, individual pokemon stats, that kind of thing?
Like I said:
Other factors may be the amount of data that needs to saved and data compression size.
You can refer to the
UserInfo class documentation
for its specifications (as well as how the use the class and what methods are available).
Manipulating a list of objets
By Vellyxenya, with 2 replies.
Last reply by Vellyxenya, about 11 years ago:
Hi and thank you for you answer (I finally understand what static mean :D In fact, at a given moment of the game, my sixth Boss spawn, which is basically only an actor that can take damage and when he dies, the game continues. The particularity of this boss is that he periodically creates magnets which create like an electricty field that the player must juke. I wanted to change the image of a single magnet to make it harder: in fact, to damage the Boss, you must first damage the magnets; and only the magnet whose image is changed is vulnerable to the damage. I put the code which creates the
changing characters picture when turning
By sp_lit, with 1 reply.
Replied to by danpost, about 11 years ago:
I could be wrong, but I do not think that the Mover class is something you may want to use here. Please post the Mover class code so that the proper reply could be formulated.
Spinning Actors
By ekavanag, with 1 reply.
Replied to by danpost, about 11 years ago:
Usually, that happens when you do not take into account the direction they are moving when at the barrier.
Help with Little Crab Image Switching every 2nd or 3rd cycle
By tomm1999, with 2 replies.
Last reply by tomm1999, about 11 years ago:
you are 100% right, I made a backup of what I had and started changing things until I got it. I searched the forum and that helped steer me in the right direction. Thanks for your reply
Receiving False positives:
By ando600, with 1 reply.
Replied to by ando600, about 11 years ago:
Never mind. I found the error. I apologize for posting this.
534
535
536
537
538
539
540
X