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
variable "name" might not have been initialized error
By ArchMageGaming, with 2 replies.
Last reply by ArchMageGaming, almost 11 years ago:
oh *facepalm* I should've seen that
Accessing one actor from another
By Josh_H, with 1 reply.
Replied to by danpost, almost 11 years ago:
You will need to include the code of your world class (the information in it is needed for multiple things). The code to your Tile class may be helpful also.
Create Stars and Create random stars are random colors
By ThatGuy245, with 1 reply.
Replied to by danpost, almost 11 years ago:
The 'setColorAt' method only changes the color of one pixel of the image. Your 'createChallengeStars' method has code similar to what should be used in the other two methods.
Help removing objects
By arw90, with 2 replies.
Last reply by arw90, almost 11 years ago:
It works! Thank you!
I need help with a score counter here is my code:
By coreypaul45, with 4 replies.
Last reply by coreypaul45, almost 11 years ago:
Thanks
How do I make it so the rocket keeps turning in the direction of the last pressed side key?
By ConG36C, with 1 reply.
Replied to by danpost, almost 11 years ago:
Add another int field to the class called 'turningDirection'. When not turning its value should be zero. Positive and negative one can represent turning right and left, respectively. Basically the value would be the mathematical sign of the change in rotation. Then, in the 'checkKeys' method, add a local int for the direction of turn indicated by the keys. Finally, if no turn keys are detected, use the current 'turningDirection' value.
Can a loop be programmed to turn itself on and off?
By Poland, with 13 replies.
Last reply by Poland, almost 11 years ago:
Thanks guys Unfortunately because I spent so much time on this problem, I didn't completely finish in time to turn my project in. I had a lot of fun with it though, and plan to complete it! Thanks guys. If you couldn't tell, I am new to this ^^;
Can't get Proton Wave code to work!
By Swordman27, with 7 replies.
Last reply by Swordman27, almost 11 years ago:
Thank you! That solved my problem completely!
My variable won't work for more than one sprite.
By RobotDJS, with 3 replies.
Last reply by danpost, almost 11 years ago:
Remove line 8 of the Car class where you create a CarWorld object while creating a CarWorld object (indefinitely). You can replace any references to 'carWorldObj' in the class with '((CarWorld)getWorld())'.
Music would not stop when I switch worlds.
By Demonicstryker, with 2 replies.
Last reply by Demonicstryker, almost 11 years ago:
nvm, I figured out what was the problem. I have another problem, how do I make the potato follow the player.
How do I
By iCodeAsian, with 2 replies.
Last reply by iCodeAsian, almost 11 years ago:
@danpost It wont open for me. Some Applet issue.
Drop down help
By Chapaladeen, with 1 reply.
Replied to by danpost, almost 11 years ago:
The basic thing is to have an Actor object as the base object of the selectors. The size of the base object can be expanded to encompass the selectors when open. This means relocating the location when expanding and collapsing so that the top-left corner is stationary. The selectors should be simple Actor objects that the detection of mouse clicks are tested on. The selectors should be held in reference fields in the base objects so that adding and removing them can be done easily, as well as detection of clicks. These base object should either have accessible identification or references
how can I set a world as a "start up" world
By sengst, with 1 reply.
Replied to by danpost, almost 11 years ago:
Of course, it is possible -- and it can be set up to work is multiple ways. That is, you can have the start-up world go directly to your game world or menu world when the scenario is started or it can remain until some mouse or keyboard action takes place. Use the 'sttarted' method of the World class for the first way, use the 'act' method for the other.
need help with timer
By shane727, with 5 replies.
Last reply by shane727, almost 11 years ago:
@Super_Hippo thanks for the help! now the timer starts at 7 and counts down!
Check if Enemies dead
By A2O, with 4 replies.
Last reply by A2O, almost 11 years ago:
Makes sense, thanks.
517
518
519
520
521
522
523
X