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
HOW DO I MAKE A COUNTER
By Stives123, with 1 reply.
Replied to by danpost, about 7 years ago:
If the counter is to be strictly internal, and int field is all you need; if visible, then you need an actor. Either way, no one can fix unseen code -- like, what have you tried (show attempted code).
How do I make a title screen?
By johannesreyes, with 1 reply.
Replied to by danpost, about 7 years ago:
johannesreyes wrote...
I've been working on a game wherein you should rescue the other people surrounding yourself. I wanted to add a title screen before the game starts, and the player will press a key that will start the game. How do I do this? Thank you so much!
Just create a new subclass of
World
and add an
act
method to it to detect the key and set the game world active (when detected).
how to save counter (score) on the other world
By joejoe, with 6 replies.
Last reply by joejoe, about 7 years ago:
ok thanks i figured it all out by myself thank you so much glad there are some people who has efforts in replying to us new people thanks again :)
timer on spawning things
By joejoe, with 19 replies.
Last reply by danpost, about 7 years ago:
joejoe wrote...
what does invalid closing tag mean?
See for yourself. Hit "Quote" on my post, third from last, including this one. Look right at the end of the block of code.
How do I change the pivot?
By AG287, with 2 replies.
Last reply by AG287, about 7 years ago:
Thanks danpost, works great now :)
Scrolling text
By Bluetiger, with no replies.
Hello I am coding a game for my school and I would like to have text that types by itself and appears on the screen. Please help me
pythagoras tree
By ronald, with 8 replies.
Last reply by ronald, about 7 years ago:
Thank you, I found the solution
constrcutor as an image (or whatever)
By joejoe, with 8 replies.
Last reply by joejoe, about 7 years ago:
its finally working, thanks a lot. i'll let you know if i need anything. thanks again for your time :)
fractal Tree
By ronald, with 4 replies.
Last reply by ronald, about 7 years ago:
thank you for the help
yin yang
By ronald, with 5 replies.
Last reply by ronald, about 7 years ago:
thank you
Help
By Stives123, with 1 reply.
Replied to by danpost, about 7 years ago:
Stives123 wrote...
i Dont know whats wrong with this code can any one help me << Code Omitted >>
There is nothing wrong with the given
Mover
class code. However, there are two requirements to using it;; (1) you need to have a compatible
Vector
class; and (2) you must have a world that is not bounded.
My images are larger than they are supposed to be. Also, using multidimensional arrays and for-loops to put actors into the world.
By 444Jam444, with 35 replies.
Last reply by 444Jam444, about 7 years ago:
danpost wrote...
In your
MyWorld
class, remove the
main
method (lines 184 to 189).
This is more what I mean by 'updated'. Just small things. Removing unnecessary (unused) code, etc.
Scenario not showing properly when I share it here
By protocolUnknown, with 10 replies.
Last reply by protocolUnknown, about 7 years ago:
Ah, thanks a ton. I didn't know that JS would play into this as a factor but now I know. The scenario is now working properly and is, in fact, more efficient because it isn't re-reading the txt file over and over again like it had to before.
Loading existing world instances?
By twinArmageddons, with 6 replies.
Last reply by twinArmageddons, about 7 years ago:
this is awesome!! thank you so much!
User writing and making the character move
By Scarley, with 20 replies.
Last reply by Scarley, about 7 years ago:
Well i tried with <Code Omitted> and its working perfectly, if only i could show like a list with what commands the user typed so he could know a little bit of the sintax to write a program , but its already good enough, thanks for the help
170
171
172
173
174
175
176
X