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
Stopwatch
By roeilthegreat, with 2 replies.
Last reply by danpost, over 12 years ago:
You would be better off not to use the System time as the regulating system. Counting act cycles is preferred because it avoids differences in system speed and lagging. In other words, the number of act cycles for any run of the game will not be consistent if using the system time. When using system time, the maximum amount of progress in the game would vary. When counting act cycles, you can still display a stop-watch like counter. I have uploaded
Timer Support Class (simple)
with source.
How do I open editor of a class that doesn't allow me to do so?
By jogit666, with 3 replies.
Last reply by davmac, over 12 years ago:
See above.
Best way to display text
By GreenGoo, with 11 replies.
Last reply by danpost, over 12 years ago:
I think Super_Hippo was thinking that if you start with 3 lives and lose a life every act, then you would be dead after three act cycles (about 1/20 seconds). You only need to update the lives counter and image when a life is lost; not every act cycle.
How to use the getKey() method
By Artyoum, with 7 replies.
Last reply by danpost, over 12 years ago:
Artyoum wrote...
There are methods for setting the location of the bullet and the location of the Rifle in reference to the Player
This is what I said should go in the Player class. Well, the bullet has movement behavior, but the Rifle does not. I was suggesting an if statement in the Weapon class to qualify when a shot can be fired.
How do i add in a ScoreBoard
By sharifahhilwa, with 1 reply.
Replied to by Super_Hippo, over 12 years ago:
The scoreboard which you can import will sort every user who played your game in descending order of their 'score'. For every user, you can store a 'score', 10 ints and 5 strings. If you double click on 'World' and click on 'PREV CLASS' in the top left corner, you get to the 'UserInfo' help. As a standard way to store a score, it is written like this:
Actor to opposite side of world
By LaffyTaffy65, with 8 replies.
Last reply by LaffyTaffy65, over 12 years ago:
Thanks the long way works great
Graphics
By GreenGoo, with 2 replies.
Last reply by GreenGoo, over 12 years ago:
Oh! I misunderstood the method! Okay thanks
Priniting
By applefan57, with 25 replies.
Last reply by applefan57, over 12 years ago:
Thank You, the green foot .delay seemed to work, and The time of 200 was fine, as it allows enough time to read the message but doesn't delay too long. Thank you danpost and Super_Hippo so much!!!!
getting value of text
By davemib123, with 30 replies.
Last reply by danpost, over 12 years ago:
If you want more control of the text, to actually have one letter appear at a time instead of one small segment of the entire image, you could make use of my
TextImage Support Class
. Use a monospaced font and have the rectangles be the size of the image of one letter.
Greenfoot 2.4 Shift-Click
By dshintaku, with no replies.
Has anyone noticed that shift-click to create multiple objects no longer works on Greenfoot 2.4 for Mac OSx? I thought something was wrong with my machine, but I tried 2.3 and it still works. Thanks!
Is there a way to combine ints
By sengst, with 3 replies.
Last reply by sengst, over 12 years ago:
Thank you! You've been a great help! Thanks again. Both of you!
Set World as class in setPaintOrder?
By Draymothisk, with 1 reply.
Replied to by davmac, over 12 years ago:
No. Check the documentation - "Set the paint order of
objects in
the world."
Game Over
By MBX5, with 10 replies.
Last reply by danpost, over 12 years ago:
@roeilthegreat, replace line 30 with these two lines; <Code Omitted>I added the first line so that an outrageous String would not be returned if the timer was not running. The second line was changed to simulate what the act method does with 'displayTime'
scoreboard issues
By Amightymuffin, with 12 replies.
Last reply by Amightymuffin, over 12 years ago:
ok so maybe a i scrap the reworked version and write a new scoreboard that record how many wombats are removed by the dolphins ( done with both cancelling when they interact).
I need help it's saying that cannot find symbol all details below
By ZahDx, with 2 replies.
Last reply by Super_Hippo, over 12 years ago:
Is there an Enemy class anywhere? It is not in the paint order at least (where the class 'Tank' is twice). Maybe the 'Enemy' class is only a superclass? And as davmac asked, why do you want to pass the new 'ActualToast' object to the new created 'Enemy' object which you want to add?
657
658
659
660
661
662
663
X