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
Shop is not working
By ADAM68801, with 1 reply.
Replied to by danpost, about 3 years ago:
ADAM68801 wrote...
Hi, I have a shop in my game, and I want to click on a actor in shop whitch I want to play with, and then the actor shoud change in the game.
Either use a parameter in your game world constructor to pass which character was chosen or create the world and add the character before setting that world active. I am presuming that the character is not being changed mid-game.
Can Someone help me with this bug?
By Kingrko23, with 1 reply.
Replied to by Spock47, about 3 years ago:
I don't understand what your source code should do, but I can tell that the expression <Code Omitted> is wrong. (and the expression <Code Omitted> can be simplified to <Code Omitted>, which implies that it probably is not what you want it to be, too.) To understand your question, the following infos would be helpful: 1. What is variable "input"? 2. What is the meaning of variable "Scanner.lastNum"? 3. What does "is in the correct order" mean for a scanner? (And what is a scanner?) 4. Presumably, seeing t
How To Import Music?
By Karmatic, with 16 replies.
Last reply by Karmatic, about 3 years ago:
OH MY GOD, My teacher taught me what to do, thank you both for your help and patience, "SHMC.mp3" was a .wav file, so it needed to be written as "SHMC.mp3.wav" Again, thank you for all your help here, and have a wonderful day.
super Mario powerup
By Beebon, with 15 replies.
Last reply by Roshan123, about 3 years ago:
@Spock47, Thanks for it. I really appreciate a lot for the whole explanation
isAtEdge not working
By ADAM68801, with 3 replies.
Last reply by ADAM68801, about 3 years ago:
Thanks, it worked
Hello and thank you that you take time to help.
By Pasce, with 1 reply.
Replied to by Super_Hippo, about 3 years ago:
Do you ever set the ‘attachedActor’ to anything?
Changing actors
By ADAM68801, with 7 replies.
Last reply by Spock47, about 3 years ago:
The if-statements that replace the buy-icon with the equip-icon are currently in the constructor of class Shop. That means, that they are only executed when the new Shop gets created. But you want them to be checked continuously while the shop is shown. The method that is executed continuously as long as the object is shown, is the act-method. So, if you move these statements into the act method, it should work. (Note that you will have to adjust the needed variables from being defined in the constructor to be private attributes of the class, so that the if-statement in the act method ca
Changing variable value
By ADAM68801, with 1 reply.
Replied to by Super_Hippo, about 3 years ago:
<Code Omitted> If the actor is in the world, you can then do this to set it to 100 for example. <Code Omitted>
how do u make the bullet disappear after hitting the enemy or the end of the world
By Beebon, with 2 replies.
Last reply by Beebon, about 3 years ago:
thx
HELLO PLS HELP ME
By Beebon, with 10 replies.
Last reply by Beebon, about 3 years ago:
thakns u
Actor disappearing for seemingly no reason
By Harrypotamus, with 14 replies.
Last reply by Harrypotamus, about 3 years ago:
I found the issue, I had the initialization as "public void token()" instead of "public token()"
Cut and paste not working in Stride
By lester52, with no replies.
The Stride editor will not cut, copy or paste. The standard editor works fine. Thankyou.
how do u make shots delay
By Beebon, with 5 replies.
Last reply by danpost, about 3 years ago:
The
Gun
class needs a field for the number of bullets it has to shoot. When shooting, the value should be decremented and then checked to see if any are left. If none left, remove gun from world.
HELLO PLS HELP ME
By Beebon, with 8 replies.
Last reply by Beebon, about 3 years ago:
thx alot :D
Problem: after scenario was restarted score does not reset
By verstruGGelt, with 4 replies.
Last reply by verstruGGelt, about 3 years ago:
Thanks for your time. I figured it out by myself, but appreciate your help
39
40
41
42
43
44
45
X