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
show bounding boxes and anchor points
By mich@elbecker.de, with 1 reply.
Replied to by danpost, about 6 years ago:
mich@elbecker.de wrote...
1. collision detection uses bounding boxes. Is it possible to show these bounding boxes around actors in the world?
The bounds are determined by the dimensions of the images set to the actors -- meaning the bounded areas are always rectangular.
2. Every actor has an anchor point. (I don't know whether this is the correct term; I mean the point that I set with Actor.setLocation(int x, int y).). Where is this anchor point in the image of the actor? Is it allways the center of the image?
Yes -- and no. There is no exact center along a dimension o
Logs in Frogger
By repertoire, with 1 reply.
Replied to by repertoire, about 6 years ago:
From restarting alot this is what i really have so far. Other than that i don't know where to go. <Code Omitted>
Objects...
By Starlord_20, with 1 reply.
Replied to by danpost, about 6 years ago:
Starlord_20 wrote...
I want to create multiple Text objects << Code Omitted >> that's what I thought about, but it doesn't work...
There is no
setImage
method available to the
Object
class. That method is declared in the
Actor
class. Therefore, the object created must be, at least, an
Actor
object. Next thing -- because the
Actor
class is abstract, you cannot use: <Code Omitted>You will need to use an extension of the
Actor
class. I would usually use either:
NullPointer Exception
By Starlord_20, with 2 replies.
Last reply by Starlord_20, about 6 years ago:
oh...fixed. thank you!
Create objects at random intervalls
By Starlord_20, with 11 replies.
Last reply by Starlord_20, about 6 years ago:
The int spawnTimer got negative because the Asteroid was still there, so I added a condition which kept the int on 0 and then it worked. thanks @danpost and @Super_Hippo!
Splitting big rocks
By Libraoct7, with 2 replies.
Last reply by danpost, about 6 years ago:
You may want to remove the touching shot (and add small rocks), then remove the big rock (
this
). The shot was probably removing the small rocks immediately (because it was still in the world). You may want to adjust where small rock #3 is added into the world at (it currently is set to the same location as small rock #2).
shoot direction to my fish
By greenfish, with 7 replies.
Last reply by greenfish, about 6 years ago:
yesss my bad. its working. thank you! for all, who wants to get the code: <Code Omitted>
How to fix to dont log in for saving the score?
By Daav3r, with 18 replies.
Last reply by Daav3r, about 6 years ago:
I got it, Thank you so much!!
Add "sluggishness" to enemy projectile tracking???
By LewisEro, with 9 replies.
Last reply by LewisEro, about 6 years ago:
That approach may word for this application. I think my initial intention in making this thread though was to learn about a method of implementing a sort of "magnetic" or "gravitational" effect, which could be used for multiple purposes.
Make Enemy Shoot Direction it is facing
By tcbcRyan, with 12 replies.
Last reply by tcbcRyan, about 6 years ago:
Oh I am so stupid, I managed to fix it. I didn't realise I had the zombies set to 10 seconds per shot
accessing a variable of the world from an actor
By AnotherUser, with 2 replies.
Last reply by AnotherUser, about 6 years ago:
thank you very much!
Why can't I shoot left even when the character turns left?
By Shrace, with 2 replies.
Last reply by danpost, about 6 years ago:
Shrace wrote...
Why can't I shoot left even when the character turns left?
Because you are not turning the character to face left (you are just changing its image to one that faces left).
Problem with receiving damage and therefore removing the hearts.
By Zyrtex1, with 4 replies.
Last reply by Zyrtex1, about 6 years ago:
Okay that's that. I hope someone can help me out with it. I am quite new to all this Java / Greenfoot stuff so I'd appreciate if someone could help me.
Stopping music if Link dies
By Zyrtex1, with 2 replies.
Last reply by Zyrtex1, about 6 years ago:
nice thank you again danpost!
creating an array of objects?
By LewisEro, with 4 replies.
Last reply by LewisEro, about 6 years ago:
thank you!
134
135
136
137
138
139
140
X