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
Indent a String?
By _wade, with 2 replies.
Last reply by _wade, over 10 years ago:
danpost wrote...
There are escape sequences you can use to modify the way a string is output in most situations. Near the bottom of
this page
of the Java tutorials is a table for them.
It works! :)
loosing health after time
By Steven.Z., with 5 replies.
Last reply by danpost, over 10 years ago:
There is also another thing about the HealthBar100 class that should be of concern. It refreshes its image every act cycle, which is not very efficient. It only needs to refresh its image when the value of the bar changes. You can remove the act method from the class and add a call to 'update' as the last line in the loseHealth25 method.
Switching World issue
By Dillybar, with 3 replies.
Last reply by Dillybar, over 10 years ago:
Ah of course, that makes sense. I did some fooling around and it worked. TY :)
Help with Bullet
By tkurban, with 1 reply.
Replied to by danpost, over 10 years ago:
'multiple bullets': what do you think this implies as far as programming this? If you want to do the same thing several times over, what kind of statement do you think would be required? 'different directions: this would imply some randomness in speed and/or direction; initial locations should probably be randomized somewhat also (or the visual of multiple bullets would not be readily apparent).
i could use help im new to greentfoot.
By redouan75, with 1 reply.
Replied to by danpost, over 10 years ago:
Does it have to be the same car or can it be a different one (possibly a different color car)? (if it will always be the same color, then using 'setLocation' would be easier than removing and adding) What part are you having problems with? * making the car disappear * making the car reappear or spawn * random placement Show what code you have tried (use the 'code' link below the reply box to insert code into posts) working on one part at a time.
Encountering multiple problems and none in which i can think of a solution
By DieKatze117, with 4 replies.
Last reply by danpost, over 10 years ago:
You say your map is over 100000 meters. What exactly do you mean by that? Maybe you can describe it in terms of pixels on your screen and give both dimensions. I noticed a bunch of large images within the images folder. A blue screen can easily be produced withouth the need of a stored image. Same with the gray screen with the title on it. Why your captured tank battle result image is in the folder, I cannot say. These large images may exceed the cache memory available for them. If you need help as far as creating images like those programmatically, ask. Another thing I need to ment
scrolling world
By iPrototype, with 5 replies.
Last reply by iPrototype, over 10 years ago:
Ill look into that game tomorrow. Thanks for the reply guys
Level-up screen
By abcd123, with 4 replies.
Last reply by davmac, over 10 years ago:
If you call the 'stop' method, then it will stop and won't continue with the code after it.
This isn't correct; the 'stop' method halts the simulation loop after the current cycle has finished. It doesn't prevent code that immediately follows it from executing.
Help with actor (Sheep) not registering other actors (Paddle1) in Pong
By zekromslayer, with 2 replies.
Last reply by dan11, over 10 years ago:
Sorry, in line 18 get rid of the .class as well
cant call method from an other class
By ds06, with 2 replies.
Last reply by danpost, over 10 years ago:
The problem is that the field is of Actor type and not of Player type. The compiler does not know to look in the Player class for the field.
Help- Changing Size of an Actor
By DancingDuck, with 2 replies.
Last reply by DancingDuck, over 10 years ago:
Thanks!
On maPong by Mortaz
By Mortaz, with 8 replies.
Last reply by danpost, over 10 years ago:
Mortaz wrote...
can you create complex objects under one Actor for example the top/ bottom border, red lines, and the middle screen all of them on a single Actor? if so how do you do it?
You could -- but, in your case, since none of them interact this any Actors or move, it might be just as well to draw them onto the background of the world.
Null pointer exception
By Dillybar, with 3 replies.
Last reply by danpost, over 10 years ago:
You can replace line 7 with the following: <Code Omitted>This was possible because both the 'bLeft' field and the 'marioL' field were made public.
Welcome to Greenfoot Discuss!
By JL235, with 3 replies.
Last reply by danpost, over 10 years ago:
@fejfo, please do not reply to discussion posts that are not recent. This one is 3-1/2 years old. I do not think that this an issue any longer (chances are he has a new mouse, if not a new system, by now; or has moved on to other things). Anything over a month old, I would say, would not be worth responding to.
So...Any good galagas yet
By DieKatze117, with 2 replies.
Last reply by DieKatze117, over 10 years ago:
didnt see this one, though i can d better i think :3
616
617
618
619
620
621
622
X