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
Need help with tic tac toe
By Conneroman, with 3 replies.
Last reply by Conneroman, over 6 years ago:
Nevermind I figured it out! Had to change the boolean to a static bool.
need help with project concerning the actors
By Vishnu19, with 1 reply.
Replied to by danpost, over 6 years ago:
Vishnu19 wrote...
I would like to have an
random initial rotation (using a random number generator
Use a class constructor to set an initial random rotation.
and give it a greater random turn capability than what it is currently shown as below. << Code Omitted .>>
Increase the values on line 8.
I need help with getting the following method to create a condition in which when the actor touches the borders, it will respawn in random areas ONLY in the top half of the world (btw my world is 800x600). The code I have below allows the actor to respawn in rando
Clicking on transparent parts of actors.
By AlmostUselessPenguin, with 1 reply.
Replied to by danpost, over 6 years ago:
AlmostUselessPenguin wrote...
Is it possible to do either of these things: -Only register clicks within the visible area of the object (all the buttons are rectangular but not a whole number of grid spaces in size) -Offset an object's image by a fraction of a grid space in an alternative way
The first way is possible by having each button retain where its visible range is. Then checking the position of the mouse with respect to that range. The second way can only be done by reducing the grid size. Best would probably be to use a non-grid world and create the appearance of a grid wit
NEED HELP! How to fix Actor not in World error?
By KAA, with 2 replies.
Last reply by danpost, over 6 years ago:
KAA wrote...
the error appears in the vacaw v2=new vacaw(); line
Please show your
vacaw
constructor code (it is in the
vacaw
class and starts with '
public vacaw()
'.
Need help deleting actors and remaking them using numpad like in the sunPlanetMoon() method
By VanishingDog, with 3 replies.
Last reply by VanishingDog, over 6 years ago:
Nevermind I got it working :) Thanks for the help!
i can't turn off my music when i enter next level
By Petr, with 4 replies.
Last reply by Super_Hippo, over 6 years ago:
You are stopping a sound which never started.
how to prevent overlapping
By Bigbobatesloppyjoe, with 4 replies.
Last reply by Bigbobatesloppyjoe, over 6 years ago:
Ok it works thanks!
Trouble with second character and Background
By Paciman, with 18 replies.
Last reply by Paciman, over 6 years ago:
danpost wrote...
Paciman wrote...
I wrote it like this, what should i correct ? << Code Omitted >>
Remove the last
if
structure around the scrolling code.
Okay i found my mistake Thanks for giving me so much of your time
New Sign Up
By sivlayyi, with 1 reply.
Replied to by danpost, over 6 years ago:
sivlayyi wrote...
Hello everyone, i'm a new one on this. Pls help guide line me.
Please check out the '
About
' (overview), '
Documentation
' (tutorials) and '
Download
' (IDE acquisition) tabs above.
How do i scale down an image?
By NateysWowed, with 3 replies.
Last reply by danpost, over 6 years ago:
So -- A1: Yes. A2: Upon creation. A3: As shown. Change '
void act()
' to '
BlockOne()
'.
how i can make my actor take points
By Petr, with 2 replies.
Last reply by Petr, over 6 years ago:
thx man now thanks to you i completed my game.
Would like some assistance with questions
By RShock, with 5 replies.
Last reply by RShock, almost 7 years ago:
Alright, so here is what I have: 2. When if - statements are evaluated the condition can only be true or false. The if - statement will be executed only when the condition is true. 3. Superclass
How to change my world with actors
By Petr, with 9 replies.
Last reply by danpost, almost 7 years ago:
Now your
addedToWorld
method has too many parameters. So, it does not have the correct method signature to be automatically called by greenfoot when the actor is added to the world. Hence,
boardImage
is not assigned any
GreenfootImage
object and remains containing a
null
value. I, however, do not see anything in the code that would require the need to know what type of world the actor is in. If all you need is the width of the world: <Code Omitted>would be sufficient:
Set actor to random location when hitting the border of the world
By Mattzh, with 5 replies.
Last reply by Vishnu19, almost 7 years ago:
I just changed it to <Code Omitted> It works, thank you so much!
How do I create a method to do the following, and does the order matter
By Vishnu19, with 2 replies.
Last reply by Vishnu19, almost 7 years ago:
Very helpful, thanks!
156
157
158
159
160
161
162
X