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
How do I move
By coreypants03, with 3 replies.
Last reply by coreypants03, over 6 years ago:
Thank you. I was able to get it to move.
Moving the Character
By Biscuits1, with 4 replies.
Last reply by Biscuits1, over 6 years ago:
Helps a lot, thanks a lot!
What's wrong with this code?
By EthanWasHere_, with 1 reply.
Replied to by nccb, over 6 years ago:
You cannot call methods which talk to the world after you've been removed from the world -- and this includes isTouching. So if one of these methods removes the actor from the world, you should not call the second method. One suggestion on how to fix this is to return a boolean from the method indicating if the actor was removed (like in
this post
). Another shorter check is to change: <Code Omitted> into: <Code Omitted> The check for the w
Randomly spawning objects in set locations at the start of the game
By EthanWasHere_, with 6 replies.
Last reply by EthanWasHere_, over 6 years ago:
Cheers!
Passing score value from lev 1 to lev 2
By jackreacher659, with 5 replies.
Last reply by danpost, over 6 years ago:
jackreacher659 wrote...
set score in level 2 to score in level 1 ?? can u tell me how can i do so?
Something like this: <Code Omitted>
Checking boundaries in my game
By Sam123123, with 4 replies.
Last reply by Sam123123, over 6 years ago:
Thank you so much nccb! this worked perfectly!
How do I take damage from collision without Animal class??
By KennyBoy, with 5 replies.
Last reply by Super_Hippo, over 6 years ago:
The simplest one (or at least a very simple one) is a variable in your Goku class. <Code Omitted>
Getting actors to shoot one laser at a time?
By charliejustshrekedyou, with 5 replies.
Last reply by danpost, over 6 years ago:
Add a
boolean
field to track the state of the "s" key. Anytime the actual state of the key is not equal to the field, change the field value and check that new value as the condition to shoot.
How to make a scoring system?
By Poseidon420, with 12 replies.
Last reply by BaliEatz, over 6 years ago:
Poseidon420 wrote...
Its alright i've fixed it now thanks guys
np dog
Trying to create a counter
By Vladiboy, with 2 replies.
Last reply by Vladiboy, over 6 years ago:
Thanks
Stacking objects in game
By jajankens, with 1 reply.
Replied to by Super_Hippo, over 6 years ago:
You can set the location of the butterfly sprites from the skateboard class, so the skateboard object can set the butterfly's location in relation to its own location. If they are just images moving with the skateboard without any other purpose, then you can create a new simple actor and assign an image to it. Then move it accordingly. You could also have one actor to display any number of butterflys if you change the image (and position) based on the number of collected butterflys. It is a bit similar when you create an object in relation to an object's position, for example when an object sh
Why is object reference to World needed?
By dejong1968, with 7 replies.
Last reply by dejong1968, over 6 years ago:
Clear now, thanks!!
SetRotation doesn't work always for the direction of movement
By dejong1968, with 2 replies.
Last reply by dejong1968, over 6 years ago:
Thanks! It works fine!
Getting the score to stop the game
By EthanWasHere_, with 1 reply.
Replied to by danpost, over 6 years ago:
EthanWasHere_ wrote...
how do I get the game the game to display my player 1/player 2 win image and stop the game whenever one of the two players reach a score of 3. It is a capture the flag game and they both have different score counters.
No related codes given for the issue at hand.
The healthbar isn't taking damage from my Minions???
By KennyBoy, with 1 reply.
Replied to by danpost, over 6 years ago:
The problem is most probably in your
Cave1
class.
201
202
203
204
205
206
207
X