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
Gameover
By Blyat, with 3 replies.
Last reply by epicgamez4201337, over 6 years ago:
First you will need to create a subclass of World. In my game i named it "GameOver". You will have to make a code that changes to the game over world. In my case, this is when the life variable is 0. <Code Omitted>In the subclass, I've used this code
Health Bar issues
By pham, with 2 replies.
Last reply by pham, over 6 years ago:
Thank you!
Can't click an object created through an array
By s-cooper, with 2 replies.
Last reply by s-cooper, over 6 years ago:
Oh my God, of course it's the simplest thing that's the solution, thank you so much! It's working now, thanks a bunch!
Variablen speichern und übergeben
By Hässelhoff, with 1 reply.
Replied to by danpost, over 6 years ago:
Do not create a
new
player object when changing worlds. Create all secondary levels without a player and transfer the same player from world to world. For example, something like this (for in the class of the player): <Code Omitted>
Keep variables in different worlds
By Hässelhoff, with 1 reply.
Replied to by danpost, over 6 years ago:
Hässelhoff wrote...
I need a way to save/keep variables even if I switch between worlds!
What worlds? what variables? (show and tell)
shoping trouble
By ebollinger@sonorahigh.net, with 3 replies.
Last reply by danpost, over 6 years ago:
ebollinger@sonorahigh.net wrote...
can you explain that in english please no effence
Maybe you should take a look at my
World Changing Demo
scenario.
i am trying to add live into my spaceinvaders
By zach0531, with 1 reply.
Replied to by danpost, over 6 years ago:
zach0531 wrote...
I am trying to add lives in my space invaders game. when the spaceships health bar hits zero I want a life to be taken away and the health bar to reset. this is my health bar code. << Code Omitted >>
The following should work for resetting the health bar: <Code Omitted>And similarly for the counter: <Code Omitted>
How can a Enemy shoot randomly?
By pleasetroll, with 5 replies.
Last reply by pleasetroll, over 6 years ago:
danpost wrote...
pleasetroll wrote...
i got this: << Code Omitted >> But it does nothing?!
Remove lines 49-50 and replace with (cut/paste) lines 24=29.
THANK YOU SO MUCH!!!
How do I add a Object (Boss) after a time?
By pleasetroll, with 8 replies.
Last reply by pleasetroll, over 6 years ago:
danpost wrote...
pleasetroll wrote...
How can Bowser shoot randomly?
Generate random numbers for the different states of the shooting process (delay, direction, chance, whatever).
Ok Thank you for your help.
how do i make my hit detection better?
By zach0531, with 4 replies.
Last reply by danpost, over 6 years ago:
zach0531 wrote...
this is my hit code under the space ship. it is still not working << Code Omitted >>
The
isTouching
method returns a
boolean
value -- not an
Actor
object. Try <Code Omitted>
Need some one to look over my code and fix my errors for my tip calculator
By Extr3m3Unicorn, with 3 replies.
Last reply by danpost, over 6 years ago:
Extr3m3Unicorn wrote...
could you show me where to change it because i am having trouble finding what you want me to change
I do not believe I said to change anything.
[Don't Reply] Project Discussion
By Venkataresan_Vikatachalam, with 8 replies.
Last reply by Hitman735, over 6 years ago:
if (isAtEdge()) { getWorld().removeObject(this); }
Cannot add actor into world.
By Aftermath, with 1 reply.
Replied to by Aftermath, over 6 years ago:
Solved
setRotation but in the opposite
By Samwcool, with 2 replies.
Last reply by danpost, over 6 years ago:
Samwcool wrote...
I guess i could make two separate walls but i feel that there must be another way of doing it
Use the
turrn
method instead of
setRotation
Time based point system
By MemThef, with no replies.
So I'm making a game where you can buy items with the points you have gotten so far and over a period of seconds, you will get more points based on the amount of that item you bought. I have the counter down and the buying, I just can't get the it to add the points back. I have a button and an actor of each button so I will post both on one of them. Button: <Code Omitted> Actor: <Code Omitted> Thanks in advanced.
225
226
227
228
229
230
231
X