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
changeing the img
By -nic-, with 13 replies.
Last reply by -nic-, about 12 years ago:
[Disallowed URL] [Disallowed URL] the first is the bosshealth classes value and the second is the bosses value but there different
Help with programming basics
By mfiala5, with 2 replies.
Last reply by SPower, about 12 years ago:
I think I know what you did wrong. In the greenfoot book, there are APIs already defined for you. In a new scenario, those APIs aren't there. You just have to copy those APIs into your scenario. Next time, you have to think about it yourself. You are doing this for school, so you have to understand it, or you'll get bad grades. I'm not going to create a scenario for you anymore, I realized you really have to do it yourself. Success!
The Third Dimension
By Razzo, with 5 replies.
Last reply by Razzo, about 12 years ago:
Just looked at it, Looked really smooth and all :) Opened the code, 0.0, Way too difficult for me D:
How do you make an actor face another actor if they are a certain distance apart.
By MakerOfGames, with no replies.
Title: How do you make an actor face another actor if they are a certain distance apart? Like in a TowerDefense game
start applet not initialized??
By -nic-, with 3 replies.
Last reply by -nic-, about 12 years ago:
anyway i will have to install another day (need perms)
how would you find what direction a sprite is ??
By -nic-, with 3 replies.
Last reply by SPower, about 12 years ago:
You're welcome
how to get a picture without a white bagschreen
By martijn13039, with 5 replies.
Last reply by -nic-, about 12 years ago:
press ctrl+n for a new img and go to advanced options go to fill with and select trancparancy then paste img and then use eraser tool to delete bits you want to be inviable i hop i helped please ask if you have more questions [Disallowed URL]
Object moving from one spot to another continually
By Alfie5, with 2 replies.
Last reply by danpost, about 12 years ago:
Another way is by saving just the other location (the one it is not at). I will call your object a 'Teleporter': Use <Code Omitted>to add the object to the world (nextX, nextY, currentX, and currentY need to be set to the coordinates of the two points the object teleports between). The 'Teleporter' class needs a constructor to receive the two coordinates sent to it; so, this code would go in the 'Teleporter' class:
removing objects at the left of screen
By e_e13, with 57 replies.
Last reply by danpost, about 12 years ago:
When 'getWorld' is called, it tries to return the world that the object in question (the counter) is in. If is has not been 'addObject'ed to the world or it has been 'removeObject'ed from the world, then 'getWorld' will return 'null' and a NullPointerException occurs.
Multiple worlds?
By ttamasu, with 4 replies.
Last reply by davmac, about 12 years ago:
Its Greenfoot.SetWorld(World). It associates another world the with same actors.
This might just be a matter of terminology, but, no, Greenfoot.setWorld(...) doesn't associate another world with the same actors - it just makes another world active. The other world might have a completely different set of actors in it (or none at all).
I was hoping there was a way to keep two independent sets of worlds so I can do some background processing while the current one is being played.
You can do this by manually calling the act() method of each actor in the othe
how would you create levels
By -nic-, with 6 replies.
Last reply by -nic-, about 12 years ago:
ok i got it working
Char to integer
By nooby123, with 5 replies.
Last reply by nooby123, about 12 years ago:
Thanks very much!
My world disappeared right after I compiled!
By MakerOfGames, with 10 replies.
Last reply by davmac, about 12 years ago:
tylers, exact same problem = exact same solution :p ... but please start a new discussion to post your code to avoid getting things mixed up in this one.
adding a copy of itself
By Razzo, with no replies.
I've been using an ArrayList for an Inventory, And bound to each item is a variable; amt, (Amount) When I drop something, I want it to, if amt > 1; addClone if amt == 1; addItself.. Ive been doing this but I dont know how to add its own class.. This is what I have been doing <Code Omitted>
turn towards
By tylers, with 5 replies.
Last reply by tylers, about 12 years ago:
yes forgot to put that.
983
984
985
986
987
988
989
X