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
actor not in world
By NewbJava, with 2 replies.
Last reply by danpost, over 5 years ago:
Either insert: <Code Omitted>at line 64; or use "
else if
" on line 65.
Drawing text onto a GreenfootImage
By RcCookie, with 4 replies.
Last reply by danpost, over 5 years ago:
danpost wrote...
If that is not a problem, I suggest you check out my
TextImage Support Class
scenario.
It is now updated to run in newer versions of greenfoot.
hint button
By superman2, with 9 replies.
Last reply by danpost, over 5 years ago:
Oh, I think I see -- "x seconds". If you do not mind the scenario to temporarily freeze during the hint display, you can use the
Greenfoot
class
delay
method. Otherwise, an
int timer
field would be sufficient.
Gif image question
By cjz19931031, with 15 replies.
Last reply by danpost, over 5 years ago:
danpost wrote...
Remove lines 35 and 38.
Swapping lines 37 and 38 would produce the same results.
Creating solid object horizontally, vertically, diagonally
By Duck12, with 5 replies.
Last reply by Duck12, over 5 years ago:
That solved my problem thanks Danpost!
not in world issues
By NewbJava, with 13 replies.
Last reply by NewbJava, over 5 years ago:
danpost wrote...
NewbJava wrote...
some lasers would hit a meteor and not show the animation and just disappear
Remove all from after line 18 to the keyword "if" on line 25 in the
Lazars
class.
Thank you, that fixed the problem. I appreciate you taking the time to help me.
Hancur()
By NewbJava, with 3 replies.
Last reply by danpost, over 5 years ago:
NewbJava wrote...
like how it is used and what it is used for?
No -- like where did you come across this method? -- where did you find it? And, what are its codes? Show the method..
Changing color of an object
By cxcpio, with 8 replies.
Last reply by cxcpio, over 5 years ago:
I found out how! Thank you for your help anyways!
Adding Object
By NewbJava, with 16 replies.
Last reply by NewbJava, over 5 years ago:
danpost wrote...
NewbJava wrote...
That is what I have so far.
Again, I do not see any issues upon testing or reviewing the codes.
I copied and pasted everything in a new greenfoot scenario and it works now. Thank you for your constant replies and help!
getting Nullpointerexception, dont know how to solve it.
By Hellotheremyfriend, with 17 replies.
Last reply by Hellotheremyfriend, over 5 years ago:
Lol should have come up with that myself but thanks
Credits at the end of a game
By Gametodie2, with 5 replies.
Last reply by Gametodie2, over 5 years ago:
It functions! Thank you very much!
User input using the terminal
By cxcpio, with 1 reply.
Replied to by danpost, over 5 years ago:
cxcpio wrote...
In a game I am making, I would like the user to input a value several times throughout. I have tried the Greenfoot.ask method but I would like to use the terminal to ask for the user input as there is a input box there. Would this be possible?
The terminal has an input box? That is news to me. Are you sure?
Error When Constructing the World
By SwaggyXiao, with 3 replies.
Last reply by danpost, over 5 years ago:
Try: 2.00023d or (double)2.00023
Embedding Scenarios on a Google Site
By mrjswaine, with no replies.
Hi there, I'm a teacher who wants to make a page that embeds a bunch of student-created games. Is there a way to do this where each game is playable in each iframe on the same page? I'm using Google Sites to create the page. See site: https://sites.google.com/limestone.on.ca/jswaine/student-work Thanks, Jon Swaine Bayridge SS Kingston, ON
How to implement a Footer UI Component in Greenfoot?
By Dev_grey97, with 1 reply.
Replied to by danpost, over 5 years ago:
Dev_grey97 wrote...
How do I create the footer component in Greenfoot? Should I create it as an Actor component? If so, how do I place the Counter and Buttons Actors into it?
Probably best is to use an actor. There are cases where you may not need to go that route; but an actor will work in most, if not all, cases. Obviously, you will have 3 types of actors -- a counter, a button and a panel (backdrop of footer area). The main class would be for the panel (or "footer" class) itself. The objects for the panel can be basic
Actor
objects controlled by the panel. These are "va
103
104
105
106
107
108
109
X