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
Greenfoot speed
By sanoy, with 1 reply.
Replied to by danpost, almost 13 years ago:
Check out my
FPS Checker
.
my scenario crashes
By sanoy, with 4 replies.
Last reply by danpost, almost 13 years ago:
What through me off was it said line 59 (not line 58 where the error should be occurring with this code). What is happening is you are calling 'restart' after removing 'this' from the world and that method needs 'this' to be in the world so that you have a world returned by 'getWorld' that the fields are located in. In other worlds because 'this' Link object is no longer in the world, 'getWorld' in the 'restart' method will return a 'null' value and you cannot call a method on or access fields from a 'null' object.
Limiting & Reloading Ammo?
By DSP512, with 1 reply.
Replied to by danpost, almost 13 years ago:
You already have a field for the amount of ammo the ship has. All you really need is a Actor object to display that amount (a Counter object is just a glorified Text object that contains the int field for the amount and a String field for the caption with methods to change them and update the display). Actually, all you need is an Actor object whose image is set the GreenfootImage of the String value of "Ammo: "+ammo Refer to the GreenfootImage class documentation for the constructor that uses a String to create images out of. Just by setting/re-setting the image of the actor each t
Windowsfenster Programmieren mit Greenfoot
By Rudolf, with no replies.
Hallo Zusammen, ich bin ganz neu hier und habe natürlich ein paar Fragen. Ich möchte ein Fenster mit mehreren kleinen Bereichen schaffen in denen ich Werkzeuge positionieren kann. Wie geht sowas in Greenfoot? Es gibt im Netz viele Beispiele, aber die sind alle für Eclipse oder so.
rotate actor toward a player
By sanoy, with 9 replies.
Last reply by sanoy, almost 13 years ago:
found the problem the image has had the wrong turn
Porting Greenfoot scenario into .apk format.
By Onyousang, with 1 reply.
Replied to by danpost, almost 13 years ago:
Have you tried a search on this site on 'Android'? also try 'Droidfoot'.
Storing Score
By pr2alede, with 1 reply.
Replied to by danpost, almost 13 years ago:
Are you using different World sub-classes for the levels? if so, what class do the classes of the levels extend?
Set paint order of objects of same class
By arjans, with 1 reply.
Replied to by danpost, almost 13 years ago:
There is a cheat that currently can be used to produce the behavior you wish. When a container is first 'grabbed' by the crane, use this <Code Omitted>If that does not work, save the coordinates of its location in fields, remove the container from the world, then add it back in at the same location.
How to to change a boolean of an actor from the world?
By Super_Hippo, with 13 replies.
Last reply by danpost, almost 13 years ago:
Super_Hippo wrote...
If you use super, do you get one level higher in this chain or do you come to the highest one?
I think I touched on the answer to this in my last post. But to be direct, 'super' calls the constructor of the class that the class extends. 'this' can also be used to call a different constructor within the same class. For example: <Code Omitted>Now, you can use 'ne
Making actors appear/activate upon actions.
By Reverie, with 4 replies.
Last reply by danpost, almost 13 years ago:
A sample light class might be something like this:
Change world background
By sanoy, with 6 replies.
Last reply by sanoy, almost 13 years ago:
thx
getImage()
By t-fire, with 10 replies.
Last reply by t-fire, almost 13 years ago:
It works!
I have a problem
By sanoy, with 3 replies.
Last reply by danpost, almost 13 years ago:
Instead of (as one example) lines 18 through 22, you would use: <Code Omitted>Read the instructions in my last post and compare it to the code here.
Counter Not Working
By Lethal_Vitamin, with 2 replies.
Last reply by Lethal_Vitamin, almost 13 years ago:
Oh... Thank you, danpost.
AI Movement
By ChuckTenton, with 3 replies.
Last reply by ChuckTenton, almost 13 years ago:
Alright I gave this code a spin
743
744
745
746
747
748
749
X