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
Making a pause menu help
By lyliux, with 3 replies.
Last reply by lyliux, almost 7 years ago:
I just realised I never called the resume() method in act(), easy fix! Thank you! I should of realised that sooner haha :')))))
h timer
By liverpoolfc, with 3 replies.
Last reply by Proprogrammer04, almost 7 years ago:
You could implemet this in your world class: <Code Omitted>You have to paste that under the <Code Omitted>
ObjectCounter..
By nicpatel, with 7 replies.
Last reply by danpost, almost 7 years ago:
nicpatel wrote...
<< Code Omitted >> i want to update location matrix when object stop to move.... is it possible.
I think we will need to see more of the squirrel class code.
Trying create an id
By divinity, with 1 reply.
Replied to by danpost, almost 7 years ago:
First, you cannot mix alpha characters with numeric character outside of double quotes (to make them strings). Second, you cannot list multiple things under the same field name (
custID
) -- unless it is an array or list. Third, those listed items on line 11 appear to be account ids, not customer ids (maybe the field name should be changed). Fourth, the listed values are not all checking accounts. I do not know why you would put them all in a class called
CheckingAccount
(probably should be in
Account
class).
Remove an actor when touching another
By Fargesia, with 4 replies.
Last reply by Fargesia, almost 7 years ago:
Thanks danpost! Works just fine!
sound
By liverpoolfc, with 13 replies.
Last reply by Super_Hippo, almost 7 years ago:
<Code Omitted>
sound
By liverpoolfc, with 2 replies.
Last reply by liverpoolfc, almost 7 years ago:
ok thanks.
Dematerializing image
By GingaSnap, with 1 reply.
Replied to by danpost, almost 7 years ago:
You could use a for loop to remove multiple pixels at a time. However, the two big problems would be (1) as pixels get removed, the chance lessens in hitting one that needs removed; and (2) determining when ALL pixels have been removed would not be an easy matter. Fading might be a favorable alternative -- gradually diminishing the transparency of the entire image. Or, maybe a combination of the two -- that way, at least the time for total removal is limited to a specific amount.
drawOval move
By ronald, with 16 replies.
Last reply by ronald, almost 7 years ago:
thank you
Jumping
By ¿ques♫, with 33 replies.
Last reply by danpost, almost 7 years ago:
¿ques♫ wrote...
Hi Danpost, was wondering, how can I edit your Scroller class or the MyWorld class to disable backwards scrolling? I want Mario to still be able to move towards the left edge of the screen, but for backwards scrolling to be disabled (doing this so that any objects that pass the left edge can be removed to reduce lag). << Code Omitted >>
The
Scroller
class should never need modification. My tutorial shows how to allow
scrollActor
roaming before scrolling using specific code in the
scroll
method in your
MyWorrld
class. It should be a simple m
shooting
By liverpoolfc, with 3 replies.
Last reply by danpost, almost 7 years ago:
liverpoolfc wrote...
you mean the subclass name?
No, I mean the entire listing of all lines of codes in both classes (in rocket and bullet classes).
Problem with sound
By zizousd, with 2 replies.
Last reply by zizousd, almost 7 years ago:
Thanks a lot, now it works, i'll pay more attention with the if commands.
Working with Colors
By Proprogrammer04, with 10 replies.
Last reply by danpost, almost 7 years ago:
(1)
getWorld
returns a
World
object -- not a
GreenfootImage
object, which you can set the drawing color of; (2) setting the drawing color does not automatically change anything that was previously drawn; you must redraw the line after setting the new color;
setPaintOrder is making my objects faster?
By puggo7, with 6 replies.
Last reply by puggo7, almost 7 years ago:
A couple of cars still over lap, but other than that, my police car works and the most of them don't overlap anymore :). Thank you!
Power Ups
By AnimeRules, with 5 replies.
Last reply by AnimeRules, almost 7 years ago:
ok thank you
171
172
173
174
175
176
177
X