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
Make a Airplane drop a bomb
By mmccurdy, with 9 replies.
Last reply by danpost, over 8 years ago:
Nosson1459 wrote...
so do<Code Omitted>(bec it moves in increments of 10)
The range would have to be ten, if the speed is ten: <Code Omitted>and that is only if the actor has a rotation of 90. Like I said before, the placement and rotation of the actor are two factors that determine where it will be positioned on each act cycle.
getting an tire cannot be cast to Car error message plz help
By hockeydude1155, with 5 replies.
Last reply by Nosson1459, over 8 years ago:
my bad stupid mistake not wat I meant though
problem
By Nosson1459, with 2 replies.
Last reply by Nosson1459, over 8 years ago:
thnx
how to reset car back when it hits the border
By hockeydude1155, with 1 reply.
Replied to by danpost, over 8 years ago:
The code from line 18 to 21 resets the car. Add the condition to line 17: <Code Omitted>
Calling method from another class
By Shadow7, with 1 reply.
Replied to by Super_Hippo, over 8 years ago:
So you need the variable in your world? Save a reference to the object when creating it. Then you can use the methods on this object. <Code Omitted>
adding multiple actors using one constructor.
By Shadow7, with 1 reply.
Replied to by Super_Hippo, over 8 years ago:
Is this what you want? <Code Omitted>
IOException
By Nosson1459, with 2 replies.
Last reply by Nosson1459, over 8 years ago:
i tried to open a class and it didnt open just showed an error window with that error 4 times and i fixed it by closing and opening the program i just wanted to know wat it is
Making only one object do something
By Acrogenous, with 2 replies.
Last reply by Acrogenous, over 8 years ago:
Sorry for my late reply. I actually found one of your previous posts and got it to work (in between the time that greenfoot takes to check its not spam) but thank you very much :) I used getWorld().getObjecta().get() to specify the specific object.
I have an obstacle that's supposed to slow the character down when touching it, but I'm not sure how to code that.
By ginger--ale, with 1 reply.
Replied to by ginger--ale, over 8 years ago:
Nevermind teacher helped me I got it.
Remove Object
By timguetz, with 1 reply.
Replied to by danpost, over 8 years ago:
Need code of life counter and anything in your world class that deals with life counter. Also, if not deducible by the code, any information on the image(s) used for the life counter that you can provide. By the way, my
Value Display Tutorial
scenario discusses how to create a life counter under non-textual display of a value.
How to (shoot misil from plane when mouse click) ?
By putuardi@smkn1klk.sch.id, with 1 reply.
Replied to by danpost, over 8 years ago:
putuardi@smkn1klk.sch.id wrote...
How to (shoot misil from plane when mouse click) Like Demonstar Game
Condition for shooting is that the mouse is clicked (anywhere). Actor object creates projectile, places it in world (at location of self, with possible adjustments, and sets its rotation to that of self:
im trying o make this car constantly move forward
By hockeydude1155, with 3 replies.
Last reply by Saladman0, over 8 years ago:
u need to do dank meme
Random direction movement
By JarJarBanks7, with 5 replies.
Last reply by danpost, over 8 years ago:
I must have accidentally deleted a substring from my last post. This sentence:
The only thin in the act method of the ball class (at least for now) is line 9.
should have read like this:
The only thing that should be in the act method of the Ball class (at least for now) is line 9.
Replace lines 21 through 26 above with the following: <Code Omitted>
JarJarBanks7 wrote...
if you see anyway to add all those bricks via for loop please tell me.
A 'for' loop would easily work. A 'while'
Calling World public method from Actor subclass
By EGrant, with 2 replies.
Last reply by EGrant, over 8 years ago:
Thanks Dan. I haven't taken advantage of World subclasses much yet. The explanation is totally reasonable since, after all, the method belongs to the subclass not World, unlike the addObject method.
Actor not in world error, when bullet touches edge.
By JonnyB7, with 2 replies.
Last reply by JonnyB7, over 8 years ago:
I thought I pasted it to the code section. But yes that was the issue thanks.
432
433
434
435
436
437
438
X