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 can a Enemy shoot randomly?
By pleasetroll, with 5 replies.
Last reply by pleasetroll, over 7 years ago:
danpost wrote...
pleasetroll wrote...
i got this: << Code Omitted >> But it does nothing?!
Remove lines 49-50 and replace with (cut/paste) lines 24=29.
THANK YOU SO MUCH!!!
How do I add a Object (Boss) after a time?
By pleasetroll, with 8 replies.
Last reply by pleasetroll, over 7 years ago:
danpost wrote...
pleasetroll wrote...
How can Bowser shoot randomly?
Generate random numbers for the different states of the shooting process (delay, direction, chance, whatever).
Ok Thank you for your help.
how do i make my hit detection better?
By zach0531, with 4 replies.
Last reply by danpost, over 7 years ago:
zach0531 wrote...
this is my hit code under the space ship. it is still not working << Code Omitted >>
The
isTouching
method returns a
boolean
value -- not an
Actor
object. Try <Code Omitted>
Need some one to look over my code and fix my errors for my tip calculator
By Extr3m3Unicorn, with 3 replies.
Last reply by danpost, over 7 years ago:
Extr3m3Unicorn wrote...
could you show me where to change it because i am having trouble finding what you want me to change
I do not believe I said to change anything.
[Don't Reply] Project Discussion
By Venkataresan_Vikatachalam, with 8 replies.
Last reply by Hitman735, over 7 years ago:
if (isAtEdge()) { getWorld().removeObject(this); }
Cannot add actor into world.
By Aftermath, with 1 reply.
Replied to by Aftermath, over 7 years ago:
Solved
setRotation but in the opposite
By Samwcool, with 2 replies.
Last reply by danpost, over 7 years ago:
Samwcool wrote...
I guess i could make two separate walls but i feel that there must be another way of doing it
Use the
turrn
method instead of
setRotation
Time based point system
By MemThef, with no replies.
So I'm making a game where you can buy items with the points you have gotten so far and over a period of seconds, you will get more points based on the amount of that item you bought. I have the counter down and the buying, I just can't get the it to add the points back. I have a button and an actor of each button so I will post both on one of them. Button: <Code Omitted> Actor: <Code Omitted> Thanks in advanced.
Maze w/ clipped out overlay
By fittirc, with 3 replies.
Last reply by danpost, over 7 years ago:
fittirc wrote...
Hey dan, thanks for replying. Unfortunaly, the path isn’t a solid color. I’m using this maze image: https://www.deviantart.com/neyjour/art/Razorcrush-Maze-298486546 If the pathways are transparent with the maze wall image, is your suggestion still viable despite the lack of one solid color on the paths?
No. My suggestion is to use a 2-D array to map out the maze. An array of int values is sufficient. use -1 for walls, 0 for pathways and different positive values to mark out any special location (for example, where different actors are to be spawned at; the value c
showText not working in Actor Class
By ouy8, with 6 replies.
Last reply by ouy8, over 7 years ago:
I ended up just making a Timer object in the first level that is passed as an argument to the second level's constructor and it all seems to be working well enough (for now). Thank you for your help!
Trying to create a highscore leaderboard?
By Nate2002, with 14 replies.
Last reply by Nate2002, over 7 years ago:
I was going to upload it to Greenfoot at some point, when i get the scoreboard working
Counter Problems
By MemThef, with 2 replies.
Last reply by MemThef, over 7 years ago:
Thanks a lot for the help! It worked perfectly.
Instantiate a new World Object
By fittirc04, with 2 replies.
Last reply by fittirc04, over 7 years ago:
Whew, you're a lifesaver! Ty nccb!
generalization
By destroyer9909, with 4 replies.
Last reply by destroyer9909, almost 8 years ago:
ah thank you so much!
How do I make the Background transparent?
By Wheely, with 1 reply.
Replied to by danpost, almost 8 years ago:
Wheely wrote...
<< Code Omitted >> I want a transparent background in my count class. Current the background is Black.
You can create a new transparent color as follows: <Code Omitted>You should see what to replace what with.
228
229
230
231
232
233
234
X