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 to make a scoring system?
By Poseidon420, with 12 replies.
Last reply by BaliEatz, over 7 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 7 years ago:
Thanks
Stacking objects in game
By jajankens, with 1 reply.
Replied to by Super_Hippo, over 7 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 7 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 7 years ago:
Thanks! It works fine!
Getting the score to stop the game
By EthanWasHere_, with 1 reply.
Replied to by danpost, over 7 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 7 years ago:
The problem is most probably in your
Cave1
class.
NumberFormatException on reading files
By mrbrook, with 5 replies.
Last reply by mrbrook, over 7 years ago:
I just build a new file to replace, it might be an unknown error with that space before the very first line, anyway this br.close help my code get better execution :) thanks for your respond
How to instantiate a new world object
By TNesler, with 14 replies.
Last reply by danpost, over 7 years ago:
TNesler wrote...
I am working with a blank world image. That's why I was surprised that the default color would be black when the background on screen was white.
Well, the initial default background image should be white and its drawing color should be set to white. It is when you create a new
GreenfootImage
object giving width and height where its default drawing color is black.
Can I place an object randomly by choosing from ten coordinates I set in a list?
By Iz.\uo, with 1 reply.
Replied to by Super_Hippo, over 7 years ago:
If you already set up the list, you only need to get a random number (
Greenfoot.getRandomNumber(10)
) and use that number as the index of the coordinate-list.
How do I end my game when my lives counter == 0??
By charliejustshrekedyou, with 2 replies.
Last reply by charliejustshrekedyou, over 7 years ago:
cool, thanks!
how can i fix this error
By divinity, with 2 replies.
Last reply by danpost, over 7 years ago:
Line 51 does appear to be troublesome. You have the extraneous characters.
'md5(
, near the end of the line.
Prevent different objects from completely overlapping with each other
By Abwatts, with 17 replies.
Last reply by Abwatts, over 7 years ago:
danpost wrote...
Abwatts wrote...
I don't know if there's a way to pause the game without using the while loop which essentially prevents other methods from executing in the same time (they wait for while loop to finish its thing first and then they execute, I guess).
I think you want something like: <Code Omitted>
Thanks a lot!
I truly appreciate all
When do I use World. and when getWorld().
By RedMine360, with 2 replies.
Last reply by RedMine360, over 7 years ago:
ok makes sense now :D thx
Need help with a health counter...
By charliejustshrekedyou, with 2 replies.
Last reply by charliejustshrekedyou, over 7 years ago:
That worked!!! Thank you!!!
203
204
205
206
207
208
209
X