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
Scoreboard
By frequency, with no replies.
Hello, How can i add a scoreboard with a custom font called Digital-7? How will i create it. I want it to add +1 after the user presses SPACE. Thanks!
Countdown timer with custom font
By frequency, with no replies.
Hello, How can i add to this scenario
SCENARIO
a count down timer with a custom font called Digital -7? And when it goes from 60-30-10 seconds to 0 to stop? Thanks
If (Greenfoot.isKeyDown("space")). Update the images
By frequency, with 9 replies.
Last reply by frequency, almost 8 years ago:
I will make a new topic,since i moved on a bit!
help needed with sin and cos
By Drawoon, with 1 reply.
Replied to by Vercility, almost 8 years ago:
Hey. Your fractions 8/17 and 15/17 are locally calculated in an integer so you get (int) 8/17 which is 0, just using double as save variable doesnt make it execute as double calcuation. Use 8.0 15.0 and 17.0 instead
Vinny! Shooting a missle
By MisterJ, with 3 replies.
Last reply by Vercility, almost 8 years ago:
danpost wrote...
Is there a question here? or do you enjoy rapid fire?
Lmfao.
How can i make 2 objects rotate from an actor
By frequency, with 5 replies.
Last reply by roonie01, almost 8 years ago:
hey dan can you plz help with my code in a few my post is on this site its something like "help with exam "
Intro of the game,Count down timer, score meter.
By frequency, with 2 replies.
Last reply by Super_Hippo, almost 8 years ago:
Comment the lines which make the scenario crash and upload it to the greenfoot website. Or post the relevant code here.
Help me with the creation of my game called 'aa'
By frequency, with 37 replies.
Last reply by danpost, almost 8 years ago:
frequency wrote...
Hey Mr Dan. I know this might sound ridiculous,but can i talk to you personally on skype or something? A call? I will give full credits to you,even though we chat or not. My skype is "ilias.counter" . I would love to have a chat with you and hear your opinion on this!
I do not skype ... sorry. My last post might be helpful, however.
Using an animated GIF as image
By DrCrane, with 2 replies.
Last reply by DrCrane, almost 8 years ago:
danpost wrote...
Basically, you create and keep a reference to the GifImage object in the class of the object that uses that gif. Then the act method should continuously get the current image (based on time) and set it to the object. The GifImage class makes extensive use of the 'java.awt' package. As such, they will only work on the site in a java applet (the Legacy version) -- they will not currently work in HTML 5 (javascript version). If you require any more details on the use of the class, show what you have tried and explain the issue.
Ah, the setImage should be in the act
nullPointerException but I don't know why?
By DrCrane, with 8 replies.
Last reply by DrCrane, almost 8 years ago:
danpost wrote...
DrCrane wrote...
Could you give me an example?
<Code Omitted>
Sorry for the late reply, but thanks. That worked.
I made a two player game with in CrabWorld and...
By Timmy_11, with 3 replies.
Last reply by Timmy_11, almost 8 years ago:
the Name tag code goes like this
I am trying to make a score counter but get a java.lang.NullPointerException
By Timmy_11, with 15 replies.
Last reply by Vercility, almost 8 years ago:
You're welcome.
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
By jxkan, with 2 replies.
Last reply by danpost, almost 8 years ago:
I cannot understand why the 'for' loop is inside the 'while' loop to begin with. You are picking a random answer in the 'for' loop. You do not need both a random answer AND a random place to put it. Any order of random answers can be placed into the array consecutively. The thing to get around here is reducing the list of possibilities as they are chosen (and without altering the array). Best might be to put the possible indices in an array and pick them randomly:
Coding Problem
By MaxBest, with 1 reply.
Replied to by danpost, almost 8 years ago:
MaxBest wrote...
What identifier would I use for sound?
GreenfootSound should work.
Problem Accessing Object from another actor
By Yister, with 3 replies.
Last reply by danpost, almost 8 years ago:
Remove 'new' from line 18.
292
293
294
295
296
297
298
X