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
How to call this return type method in actor class.
By Jemy, with 1 reply.
Replied to by danpost, 13 days ago:
int timeOut = ((MyWorld)getWorld()).TimeOut();
Get variable from actor that is not in world
By Gbasire, with 1 reply.
Replied to by danpost, 13 days ago:
If not in the world, then a reference to those actors must be maintained -- preferably, in a list (or a set of lists).
Position Same images in different positions
By Jemy, with 6 replies.
Last reply by Jemy, 14 days ago:
danpost wrote...
danpost wrote...
What code do you have in Person class? (I presume the random numbers are given there)
I guess it is called
Server
class now.
yes
How can I jump?
By Elen123, with 1 reply.
Replied to by danpost, 14 days ago:
Please refer to my
Jump and Run Demo w/Moving Platform
scenario. Run and click on
Who
button for code used.
Enemy Animation in both Directions
By Genota, with 5 replies.
Last reply by danpost, 14 days ago:
The
direction
field is not required and only complicates things. Just negate the
speed
value to turn around. You will only need one
setLocaton
line that way, also. <Code Omitted> Remove
count++;
from act.
Error with sound
By BogdanMicu, with 9 replies.
Last reply by BogdanMicu, 14 days ago:
Hai ca jucam barbut cu baietii poate nu isi dau seama.
how to create multiple parameters within a constructor
By bubble96, with 1 reply.
Replied to by danpost, 15 days ago:
This appears to be an assignment. Maybe you should refer to the java tutorials for help on this, particularly the section on
arguments
.
Actor not in the World
By Genota, with 1 reply.
Replied to by danpost, 15 days ago:
Insert the following after line 133 in
Projectile
class: <Code Omitted>
How making the actor in to the home?
By mariq_rasyid29, with 1 reply.
Replied to by danpost, 15 days ago:
Please refer to the Greefoot
tutorials
.
I get an weird error
By XApple15, with 5 replies.
Last reply by danpost, 15 days ago:
Those kind of errors are usually caused by having information blocks embedded in the files. Try re-saving the files w/o the information.
Change the image of an Object
By lil.bopp, with 1 reply.
Replied to by lil.bopp, 15 days ago:
Uh sorri, I found out myself xd It's literally just <Code Omitted> well still thank you, and if this helped someone else, that's just better :p
I can't click buton after i add an actor with click
By raul124, with 1 reply.
Replied to by raul124, 15 days ago:
I figured it. Apparenty my zone actor has a larger aria that i tought and it was covering my buton Now it works perfectly.
Spawn new actors when there are no bullets
By raul124, with 2 replies.
Last reply by raul124, 15 days ago:
Your idea worked. But after some thinking I ended up makind to different buttons, one for each action I needed. Thank you very much!
Projectile Animation
By Genota, with 1 reply.
Replied to by danpost, 16 days ago:
Remove line 137.
Can I add objects to the world with a for() loop?
By BlueHand, with 9 replies.
Last reply by danpost, 16 days ago:
BlueHand wrote...
Thanks, but I notice that something is up with the last parentheses of: <Code Omitted> It says " ']' expected "
Correction: <Code Omitted>
1
2
3
4
5
6
7
X