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
getting random number
By Miguel.Valdez, with 4 replies.
Last reply by Miguel.Valdez, almost 8 years ago:
I did but did not take into consideration the exclusive part. So what my professor said was wrong.
How to let a actor walk?
By LMT, with 5 replies.
Last reply by danpost, almost 8 years ago:
Yehuda wrote...
Right when I saw the answer was "Yes" I understood. Because I've seen before how all brackets are removed if they're not between the code tags. Now that can make sense (although it always did).
Lol -- I realize now that my copy/paste operation before editing the line also did not get the array brackets. My edited line should read: <Code Omitted>
My bullet code is not working
By mountwo22, with 6 replies.
Last reply by mountwo22, almost 8 years ago:
Thank you so much
Adding and removing object with the same button.
By Recorsi, with 2 replies.
Last reply by Recorsi, almost 8 years ago:
That is the problem i had. Thank you :)
null pointer exception
By LobsterL, with 2 replies.
Last reply by LobsterL, almost 8 years ago:
Thanks you
Calling World public method with actor as a parameter
By FabioPacheco, with 25 replies.
Last reply by danpost, almost 8 years ago:
FabioPacheco wrote...
But I still have the problem with: <Code Omitted>The "new ActorIcon" doesn't accept the variable violin It says that "cannot find symbol- variable violin"
Where did you try to use this line of code? You will need to remove at minimum in your MyWorld class lines 6, line 51, lines 132 through 152 and lines 170 through 190. Then line 89 will need to use my example code for adding the Viiolin object. The other objects (Tambourine, Mandolin, Congal and Saxophone) should be added (at lines 77, 81, 85 and 93) similar to that o
Why doesn't setLocation work?
By Recorsi, with 5 replies.
Last reply by Yehuda, almost 8 years ago:
Before we fixed the problem, every act cycle that a laser was touching the Actor that the getHit method is in, 1 would be subtracted from ‘health’. Now that each bullet only remains for one cycle, it only subtracts 1 from ‘health’ in its lifetime.
Enemy turn towards you and shoot...
By Timmy_11, with 2 replies.
Last reply by Timmy_11, almost 8 years ago:
Thanks I'll try it out
making a object randomly choose to either turn up, down, left, or right (180, -90, 0, 90)
By Miguel.Valdez, with 14 replies.
Last reply by Miguel.Valdez, almost 8 years ago:
awesome THANK YOU!!!!! I have learned A LOT between yesterday and today in how to make simple things functions..... all i know is things will start getting much more complicated though,
loop-practice throws a java.lang.NullPointerException
By paubel, with 5 replies.
Last reply by danpost, almost 8 years ago:
For a transparent background, you can change the line to this: <Code Omitted>
How do I set a string only once
By CarmanRose, with 4 replies.
Last reply by CarmanRose, almost 8 years ago:
Thanks, it works!
My actor gets moved to the right edge if it hits the left edge
By Recorsi, with 2 replies.
Last reply by Recorsi, almost 8 years ago:
I don't know why, but that fixed the issue. Thank you :)
how do i use a variable (not a method) in a separate class?
By i_made_this_account_to_ask_this_question, with 1 reply.
Replied to by Vercility, almost 8 years ago:
<Code Omitted><Code Omitted>
Im trying to make my actor change when he turns:
By Kushaal, with 7 replies.
Last reply by Kushaal, almost 8 years ago:
Thanks a lot, the problem is solved... I just used this code and it worked out:<Code Omitted>
Starting timer if boolean is true?
By Recorsi, with 13 replies.
Last reply by danpost, almost 8 years ago:
Recorsi wrote...
Just to make it clear: if (boolean) is the same thing as ==true and if (!boolean) is the same thing as ==false, right?
I believe you got it right. if (!boolean) is also the same as != true.
274
275
276
277
278
279
280
X