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
End the Game
By Chris80, with 1 reply.
Replied to by danpost, over 8 years ago:
Chris80 wrote...
I want to end the game after winning by one of the player. Game should end when Gameover box appears .
Add a 'Greenfoot.stop();' statement immediately after having the Gameover box added into the world. You can also add the following method to your World subclass: <Code Omitted>This is so the user is not able to restart (unpause) the game.
Stop the world
By ali18, with 2 replies.
Last reply by ali18, over 8 years ago:
Thanks!!
Defining a String
By rockon411, with 2 replies.
Last reply by rockon411, over 8 years ago:
Thanks! It worked!
Colission from the side/top
By Casper, with 2 replies.
Last reply by Casper, over 8 years ago:
Thanks man, it works
Help with my Shark game please?
By Optimistic_Celery, with 8 replies.
Last reply by danpost, over 8 years ago:
Optimistic_Celery wrote...
Nope, theFish1 wont spawn either, and the other spawn programs are identical. That spawn_theFish1, along with the others, are all in public MyWorld.
You did not answer my other question:
danpost wrote...
What method is that code in and what class? If not the act method, is the method being called from the act method?
The 'class' part was answered; but, not the 'method' part. Please post your entire MyWorld class code.
what is the error
By Ozan31, with 3 replies.
Last reply by danpost, over 8 years ago:
Ozan31 wrote...
This code has fixed my previous problem, but i have just noticed that the actor is no longer removed when it reaches the edge of the world.
The elipses, '...', in the code I supplied indicate that more goes there. Complete the line as in your line 6 above.
How can i create a health bar with lives? Help!!
By ali18, with no replies.
I have got a rocket in the world that chases my actor (Plane), but i don't know the code for a health bar that decrease after getting touched by the rocket, and i also don't know how to implement lives within my game. SO, every time the health bar is decreased, one live is lost and i start from the beginning of level 1?? Some one please help!!!
I want to upload the sequel to my game and it is not letting me
By Ruv25808, with no replies.
I made a topic like this yesterday but i think that there has to be something i can do to keep the name of my game just adding "2" to the end of it. Ive tried many things and I am not able to come up with a solution to this problem. I know it has to do with the name of the scenario on this site but the name is not the same. Thanks in advance.
How do I switch text with a button
By cococypress21, with 2 replies.
Last reply by cococypress21, over 8 years ago:
Got it working, thank you.
Change the speed of an actor after clicking a button?
By Nozarashi, with 5 replies.
Last reply by Nozarashi, over 8 years ago:
danpost wrote...
Nozarashi wrote...
I believe I fixed it. Correct me if i'm wrong. I changed move(2); to move(Bee.speed);
That works. You could just use this, however: <Code Omitted>since it is in the Bee class.
Okay, thanks for the help.
what is the problem
By ChrisD, with 12 replies.
Last reply by ChrisD, over 8 years ago:
OMG danpost you just helped me soooo much. thank you!
I'm new here, I look forward to a pleasant experience.
By Code-X, with 1 reply.
Replied to by AngelusNeko13, over 8 years ago:
hello, yea sure, ask anyone what you'd like to learn here and someone might come by and help. Im still a bit of a beginner but hey if you'd like, you can try out my game called Street Racer X
How to implement counter in level 2?
By ali18, with 2 replies.
Last reply by ali18, over 8 years ago:
Thank you for all your help, it is all functioning well.
how to make my game faster
By BrianOK, with 3 replies.
Last reply by danpost, over 8 years ago:
The basics are given here: <Code Omitted>The ten second gap will shorten as the speed increases; but that should not ruin the effect too much. I am guessing that the game will be lost within about 2 to 2.5 mi
Make Backgrounds change in order
By AngelusNeko13, with 7 replies.
Last reply by AngelusNeko13, over 8 years ago:
is there a way i can make the function change in the order i want them to?
356
357
358
359
360
361
362
X