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
Score Counter Keeps Counting
By Sn3aKyGuY, with no replies.
Not quite sure what the issue is here so hoping someone can help me out. I'm working on my own version of the modern-crab scenario and I've had pretty good luck so far with searching the site and docs to find all my answers, but for whatever reason the score counter I have included is counting up at a fast rate of speed for no apparent reason. I've tried renaming the class from Counter to Score, thinking that may help with something interfearing code wise. I've tried removing all non-Score related counting in my Worm class, but that dosen't help. Just slows how fast the counter counts up. Link: http://www.greenfoot.org/scenarios/12203 Thanks in advance!
UPDATE: Sorry guys, I had my .bumpCount code in the wrong Actor Class. Been working on this for almost 12 hours now so a little fried. >.<
Animated Charecter
By genfy, with 3 replies.
Last reply by danpost, about 11 years ago:
genfy wrote...
So, going by your advice I'm going to have the switch be based around timer instead of frame, and have 60 be frame 1, 40 be frame 2 and etc. But thanks!
I do not know from where you are getting values of 60, 40, etc. :?
getOneObjectAtOffset() not working
By Cyoce, with 3 replies.
Last reply by Cyoce, about 11 years ago:
Thanks for the help! It works now!
does anyone know how to make it so my space ship dies when i get closer to rock
By coder04, with 5 replies.
Last reply by danpost, about 11 years ago:
rrose5 wrote...
good point, maybe you could hint him toward the right direction :P
That does not seem to help with this user. Please see
this
discussion thread.
Problem with setimage() method.
By Akash_Pingua, with 4 replies.
Last reply by Akash_Pingua, about 11 years ago:
Thanx a lot dude...!!! Completely satisfied with your suggestion. Keep coding. :)
How do you make enemies shoot
By coder04, with 3 replies.
Last reply by Super_Hippo, about 11 years ago:
Don't you also shoot with your ship? Then you should already know how to spawn the bullet. To set the rotation, you can give the 'Shot' class a parameter in the constructor and pass the rotation of the ship there. If you want it to target you, you can use the 'turnTowards' method. As an alternative, which I used in my
Space Shooter
scenario for the enemies which shoot at you, I calculated the rotation "by hand".
Does anyone know how to Remove the bullet when it gets to end of world
By coder04, with 14 replies.
Last reply by coder04, about 11 years ago:
K
My ammo gets stuck in the edge of the world
By coder04, with 2 replies.
Last reply by coder04, about 11 years ago:
sorry
my warship is not following me when I run my game
By coder04, with 1 reply.
Replied to by danpost, about 11 years ago:
You need to add movement commands to your code if you want your actor to move.
Anyone tell me how to make my actor shoot
By coder04, with 5 replies.
Last reply by coder04, about 11 years ago:
THANX
Third part library when packing to a gfar.
By Upupzealot, with 3 replies.
Last reply by davmac, about 11 years ago:
Will third part library (such as json library in an jar file) be packed into the gfar also?
Can't you just try this and see? I think the answer is probably "yes" but it would be much simpler for you to just test it.
Help with boolean Statements
By Loaf, with 2 replies.
Last reply by danpost, about 11 years ago:
You need to show the related code where you are calling these 'set' methods.
Levels
By DarkSoulDemon, with 16 replies.
Last reply by DarkSoulDemon, about 11 years ago:
Thank you
Reset
By DarkSoulDemon, with 6 replies.
Last reply by DarkSoulDemon, about 11 years ago:
Thank you
My music wont play!
By coder04, with 3 replies.
Last reply by danpost, about 11 years ago:
Show world class code where you add a Music actor into it.
648
649
650
651
652
653
654
X