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 do track rotation from actor to mouse
By i_joker123, with 12 replies.
Last reply by i_joker123, over 10 years ago:
Thank you so much! I appreciate your time :) Thanks again!
I'm not sure what's wrong with my code
By thekidj, with 5 replies.
Last reply by danpost, over 10 years ago:
Yes. For each Course object you create, you must supply (1) a String for the name of the course (2) an int for the number of credit hours for that course and (3) a char for the grade achieved by the student for that course (see the constructor signature for the class Course).
Contains one occurrence?
By thekidj, with 15 replies.
Last reply by thekidj, over 10 years ago:
bourne wrote...
Thanks danpost, I didn't catch that. What danpost said.
My professor and I are going to look over the code later this week. Thanks for the help though!
Using the mouse.
By 13111876, with 1 reply.
Replied to by Zamoht, over 10 years ago:
Use the code from my
Parabola Math
scenario. The Dot class has this kind of mouse movement you are talking about.
Controlling Multiple Instances Individually
By tommyd456, with 8 replies.
Last reply by danpost, over 10 years ago:
If only controlling one Car object at a time, you could add a class (static) field to hold the specific car object that is to be controlled. <Code Omitted>
End world
By Baenefin, with 5 replies.
Last reply by danpost, over 10 years ago:
Check your logic on lines 18 through 23 in the 'fall' method of the 'Mover' class.
Animation delays
By Bmerberg, with 1 reply.
Replied to by MatheMagician, over 10 years ago:
It would help if you shared the code you already have... But if you want to wait several act cycles before performing an action, you can do this: First create a variable <Code Omitted>Every act cycle, increment that value, and check it to see if you want to change the image. <Code Omitted> This will call the animation code every five act cycles. Change "delay" to make that time shorter or longer.
Enemy jump timer
By Baenefin, with 1 reply.
Replied to by Baenefin, over 10 years ago:
Why would you even say that?
remove object and add a new on mouseclicked
By vbh, with 6 replies.
Last reply by vbh, over 10 years ago:
Ty All its working now :-)
Respawning
By skyhighh, with 2 replies.
Last reply by skyhighh, over 10 years ago:
hey dan thank you man it worked just like i wanted i only used it in trap class self instead of the the one whos stepping on it tyvm :D
How can i make 2 counters work?
By Aermus, with 1 reply.
Replied to by danpost, over 10 years ago:
The main thing that you need to do if you are going to have more than one Counter object is to keep references to them: <Code Omitted>Now, you can refer to either one by its name.
How do i switch from character
By Aermus, with 6 replies.
Last reply by Aermus, over 10 years ago:
Is this correct? I put a private in character in the class speler == control.. <Code Omitted> the i put the controls in the thief, like so
Off to a bad start
By ben.filla, with 3 replies.
Last reply by bourne, over 10 years ago:
Is your Wombat constructor some reason private or protected?
greenfoot sound
By RedCreeper, with 1 reply.
Replied to by Sniper, over 10 years ago:
Your sound probably has a silent spot at the beginning, end, or both. Cut those pieces out and you'll be fine.
Adding score when destroying enemies
By Foyman, with 1 reply.
Replied to by FlyingRabidUnicornPig, over 10 years ago:
You need a reference to the scoreboard. Instead of the enemy class, have it in you're world class, and then access your world scoreboard with this (Make sure scoreboard is PUBLIC!!!): <Code Omitted>
768
769
770
771
772
773
774
X