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
Buttons
By Lavenger, with 8 replies.
Last reply by Lavenger, over 8 years ago:
oh okay, thanks for explaining
How does this if statement work?
By suzbo, with 2 replies.
Last reply by suzbo, over 8 years ago:
thank you - that was most helpful
How to make an object go side to side without giving explicit x coordinates.
By logitechkeyboard, with 3 replies.
Last reply by danpost, over 8 years ago:
See your
discussion
thread using username
lastaccountbanned
.
(Danpost, help), gradual side to side movement.
By lastaccountbanned, with 3 replies.
Last reply by danpost, over 8 years ago:
lastaccountbanned wrote...
Is there a way to make it smoother?
You could probably just remove the delay timer (in the Space class) and decrease the distance moved per act step (in the Invader class).
help with Text
By student1, with 7 replies.
Last reply by student1, over 8 years ago:
thank you it works perfectly
How would I check one actor's position, from another actor?
By Navique, with 1 reply.
Replied to by danpost, over 8 years ago:
Navique wrote...
I'm trying to get one object to point towards another, then send itself in that direction.
Is this a ranged action or is it permanently to go toward this other actor? What codes are you using for this actor?
Scale(int, int)
By Lavenger, with 2 replies.
Last reply by Lavenger, over 8 years ago:
danpost wrote...
Apparently, your
Butttons
array holds
Actor
objects and you cannot scale an actor (you scale the
image
assigned to the actor -- or
GreenfootImage
objects).
oh that's right xD I was scaling the actor and not the image lol that's why it wasn't working
help with Gravity code
By student1, with 30 replies.
Last reply by student1, over 8 years ago:
thanks it's working now
Easy Counter Code, no tags OS
By MisterJ, with 2 replies.
Last reply by MisterJ, over 8 years ago:
Thanks for the tutorial link danpost. I will definitely check it out.
how do i check if a certain actor is in a certain range?
By Lavenger, with 9 replies.
Last reply by danpost, over 8 years ago:
Lavenger wrote...
can you give me an example of how to create a reference?
The list will contain the references of any Taihei object in range. You just need to
get
it from the list.
How to import new font and use it? (Danpost, help me)
By logitechkeyboard, with 1 reply.
Replied to by danpost, over 8 years ago:
logitechkeyboard wrote...
I have a TTF(TrueType Font) file. How do I upload it into greenfoot and use it while displaying text?
I think this would be a question for the greenfoot teeam, not me.
Add random objects
By KKobra, with 1 reply.
Replied to by danpost, over 8 years ago:
KKobra wrote...
How can I add random objects in a Scrolling Scenario with the y defined?
Please be more explicit and show some code attempting to accomplish the task. It goes a long way for understanding your issue to correct it. You may have to specify what scrolling class you are using (or how you control the scrolling) and how you constructed the world.
How do I create a randomly moving enemy along the X axis that moves side to side.
By an123, with 1 reply.
Replied to by danpost, over 8 years ago:
Your timer is restricting movement to about 3 shifts in position per second; also, your random movement is restricted toward the lower right corner of the world. I wonder if you really need the timer and for smoother movement, I do not see how using random distances is going to help with the movement -- especially since it is direction, not speed, you want randomized. I would scratch all this code and start afresh. For more help, you will have to give more details as to exactly how you want your enemies to behave -- in all situations. Use lots of adjectives for clarity.
Cartesian Coordinates
By MrBradley, with 3 replies.
Last reply by danpost, over 8 years ago:
MrBradley wrote...
I've tried implementing the code, but it seems to interfere with the existing code somehow. Haven't look too closely yet. I keep coming back to it to see how seamless it might be. Would you mind taking a look to confirm?
Please post your attempted code for setting a new location (enough code to get context would be helpful) with a brief of what you are expecting it to do.
Creating my own greenfoot image
By Morzan189, with 1 reply.
Replied to by danpost, over 8 years ago:
Morzan189 wrote...
I would like to create an image for an actor used to display a score. Here is the code : << Code Omitted >> I did add the object in my world, but here is the picture I get : << Image Omitted >> What am I doing wrong?!
The compiler does not recognize the code block as a constructor as constructors do not have an explicit return type (they always return the object constructed). Remove
void
from line 5.
271
272
273
274
275
276
277
X