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
adding multiple actors using one constructor.
By Shadow7, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
Is this what you want? <Code Omitted>
IOException
By Nosson1459, with 2 replies.
Last reply by Nosson1459, almost 10 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, almost 10 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, almost 10 years ago:
Nevermind teacher helped me I got it.
Remove Object
By timguetz, with 1 reply.
Replied to by danpost, almost 10 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, almost 10 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, almost 10 years ago:
u need to do dank meme
Random direction movement
By JarJarBanks7, with 5 replies.
Last reply by danpost, almost 10 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, almost 10 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, almost 10 years ago:
I thought I pasted it to the code section. But yes that was the issue thanks.
Fuel, Altitude text
By mmoodle, with 1 reply.
Replied to by danpost, almost 10 years ago:
mmoodle wrote...
I'm constructing a game where I want to display the fuel and altitude during the game (like a timer). Does any body know how I can do that?
These are both value displays and are discussed in my
Value Display Tutorial
scenario.
Flipping continuously error :(
By regwang, with 8 replies.
Last reply by Nosson1459, almost 10 years ago:
yeah just sayin
Need Help in designing a weight balance.
By Shrey007, with 1 reply.
Replied to by danpost, almost 10 years ago:
Start by creating the Actor subclasses needed for the project (the rocker arm and pan classes). If you want the weight balance to tilt gradually to any new setting (or settle into the new setting by swaying back and forth over what will be the new setting), then you may require a smooth rotating system. The class for the rocker arm should keep a reference to the two pans attached to it so it can easily acquire the weight values and determine what rotational forces that need applied. A slight drag factor should also be implemented to create the settling on a new value. This was just to gi
Remove object when ate another object.
By casper4444, with 4 replies.
Last reply by danpost, almost 10 years ago:
@theyoshiguyREAL, you should not reopen old discussion threads like this; but, start a new one dealing with your issue. However, the lines starting with: <Code Omitted>to the second to last line posted are not within a method. Try moving the line above it, the '}', to below that set of code (so that you have three consecutive closing brackets at the end and said code is within the act methodd.
How do I make my life meter animate?
By ginger--ale, with 9 replies.
Last reply by ginger--ale, almost 10 years ago:
it works now, thank you
435
436
437
438
439
440
441
X