Sign Up, Lost Password
You need to login to take part
timer on spawning things
By joejoe, with 17 replies.
Last reply by danpost, about 6 hours ago:
<Code Omitted>Again, then add the extra condition that "
sbTimer == 0
" to shoot a
to 480 when shooting one.
Invalid closing tag prevented code (and rest of last post) from showing -- sorry.
By avery, with 8 replies.
Last reply by avery, about 6 hours ago:
oh yes sorry, thank you for your help! :>
By ronald, with 7 replies.
Last reply by danpost, about 21 hours ago:
I know what lines 40 and 41 are supposed to do; but, they aren't doing it. The 4 coordinates given the method via parameter arguments are for the endpoints of a line segment that makes the base of a new square. Lines 40 and 41 are supposed to compute the coordinates of a point that is one and one-half the length of the line segment "above" the midpoint of the segment. You need two points to get a midpoint; yet, those lines of code only utilize one point (
). Also, you have
directly interacting with each other in those lines. That can not be good for anythin
constrcutor as an image (or whatever)
By joejoe, with 8 replies.
Last reply by joejoe, 1 day ago:
its finally working, thanks a lot. i'll let you know if i need anything. thanks again for your time :)
By ronald, with 4 replies.
Last reply by ronald, 4 days ago:
thank you for the help
How do I change the pivot?
By AG287, with 1 reply.
Replied to by danpost, 4 days ago:
Actors always rotate with the pivot at the center of its image. The image can be adjusted (by adding or removing some transparencies) to relocate the pivot point.
By ronald, with 5 replies.
Last reply by ronald, 5 days ago:
By Stives123, with 1 reply.
Replied to by danpost, 10 days ago:
i Dont know whats wrong with this code can any one help me << Code Omitted >>
There is nothing wrong with the given
class code. However, there are two requirements to using it;; (1) you need to have a compatible
class; and (2) you must have a world that is not bounded.
My images are larger than they are supposed to be. Also, using multidimensional arrays and for-loops to put actors into the world.
By 444Jam444, with 35 replies.
Last reply by 444Jam444, 11 days ago:
class, remove the
method (lines 184 to 189).
This is more what I mean by 'updated'. Just small things. Removing unnecessary (unused) code, etc.
Scenario not showing properly when I share it here
By protocolUnknown, with 10 replies.
Last reply by protocolUnknown, 11 days ago:
Ah, thanks a ton. I didn't know that JS would play into this as a factor but now I know. The scenario is now working properly and is, in fact, more efficient because it isn't re-reading the txt file over and over again like it had to before.
Loading existing world instances?
By twinArmageddons, with 6 replies.
Last reply by twinArmageddons, 13 days ago:
this is awesome!! thank you so much!
User writing and making the character move
By Scarley, with 20 replies.
Last reply by Scarley, 13 days ago:
Well i tried with <Code Omitted> and its working perfectly, if only i could show like a list with what commands the user typed so he could know a little bit of the sintax to write a program , but its already good enough, thanks for the help
I need help with how to read a txt file in greenfoot
By protocolUnknown, with 5 replies.
Last reply by protocolUnknown, 14 days ago:
I was able to fix it by moving everything to the world class. I think the issue was something else and not with the txt file reading method I had. I was able to fix it though, so thank you
Understanding how to handle the game mechanics in which classes
By protocolUnknown, with 1 reply.
Replied to by danpost, 15 days ago:
Is the World class meant for just the initial setup of what the screen/level will look like and nothing else after that?
A class, whether
or any other, is a blueprint (or part of one) for a type of object. Its fields maintain the different states that its objects can have and its methods provide the behavior for its objects (things these type objects can do). For each object, its states can be change and its behaviors can be utilized throughout the object's life (or its existence -- until all references to that object are lost). I s
Problem using canSee method
By kml008, with 1 reply.
Replied to by danpost, 16 days ago:
some time this method works and some time it doesnt
It will only work in an
subclass that extends the
class or one that has a
method within itself. As an alternative, you can use the