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
mouseClicked
By Nagoya, with 5 replies.
Last reply by danpost, over 12 years ago:
erdelf wrote...
@danpost, isnt that basically the same `?
Nagoya wrote...
Let's say I have two subclasses from the actor class and that I am
in myWorld class
( subclass of world ) and
want to create a statement
which is: If you click on the "play game" box, it Goes to the game scenario. If you click on the instructions box it will show you how to play the game.
This is what was asked for (see the bold-italicized).
can someone help. I'm making a program that when the first condition is met me add lives. and when the second condition is met. I deduct that lives and wait.
By SouLi, with no replies.
public void live(){ if(((Arb/4)>=1) && (Con/3)>=1) { live++; Arb=ArbRe-4; Cons=ConCo-3; if(live==7) { Greenfoot.stop(); } } //Over condition else if(Pic==3){ live--; Pic=Pic-3; } if(live==0) { Greenfoot.stop(); } } public int alllive(){ return live; }
Helpme
By SouLi, with no replies.
hello. I'm making a game of wolves, where and when the wolf want a rabbit that has touch lives, an accountant, that when you touch a life is 3 times is quite right .... Someone could help as I have proven with isTouching, but it does not work ...
bass kick method help...
By SandDealer, with 4 replies.
Last reply by JasonZhu, over 12 years ago:
I'm just going to point out that your pic is very trippy. It's like its turning. Optical Illusions are messing with my brain.
Mouseclickmessage
By Tapato, with 8 replies.
Last reply by danpost, over 12 years ago:
Tapato wrote...
But can't we put a method in subclass World wich can make a ''Method call'' when you click on the right of the mouse ?
Yes, but this
danpost wrote...
Use a basic Actor object and give it the image you require. You can create the image with the text of wanted font size and colors using the proper GreenfootImage constructor call.
is what is to happen within that method (maybe 'create a basic Actor object' would have been less confusing than 'use a basic Actor object').
Is there a way to set actors so they cannot be moved with the mouse?
By blorange2, with 3 replies.
Last reply by danpost, over 12 years ago:
You can either use the 'act' method of all those actors to 'setLocation' them where you want them; or in your world class, use the 'started' method to 'setLocation' them where you want them. With the world 'started' method you will need references to each actors and the coordinates in the 'setLocation' call can be literal; with the actor 'act' method you will need the coordinates saved in fields for the 'setLocation' call to use (if you only create one of that type actor, they can be literal here, also).
Can someone help me with my game?
By kingderkilla, with 3 replies.
Last reply by kingderkilla, over 12 years ago:
<Image Omitted>
Starting on a world
By NAZZA, with 2 replies.
Last reply by NAZZA, over 12 years ago:
Thanks
Infinite Scoreboards
By miniclausen1995, with 11 replies.
Last reply by miniclausen1995, over 12 years ago:
Oh I see. Thank you so much
I have a request, and it seems unusual I haven't found much for it yet
By DarkMageCkmario, with 2 replies.
Last reply by DarkMageCkmario, over 12 years ago:
that's true, I did find a countup timer to steal, (which I did) but it's still Eldritch Magic how it works to me.
Don't stop animation if the key is not pressed.
By Than4tos, with 6 replies.
Last reply by Than4tos, over 12 years ago:
Yep thx, i was actually thinking about something similiar on the bus on my way home.
Boarder Lines
By Rudolf, with 15 replies.
Last reply by Rudolf, over 12 years ago:
Hello, it´s me again. Could anyone say how to get a difference between my desktop and my Menue(see picture above)? I got an pic in my menue but when I clicked on it I got the same result as in my Desktop.
Predation problems
By FpRoT, with 3 replies.
Last reply by FpRoT, over 12 years ago:
But now they don't die immediately and the predators stopped moving
Ball Intersecting Detection
By Pointifix, with 1 reply.
Replied to by Pointifix, over 12 years ago:
Fail cleared, found solution in another forum ;)
------------------------------------------------------Closed------------------------------------------------------------------
"counter.add(1);" refuses to work
By H8_2_BeThatGuy, with 3 replies.
Last reply by danpost, over 12 years ago:
Will have to see all code related to the counter in your world subclass.
714
715
716
717
718
719
720
X