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
New problem, trying to get a label to stay at a particular spot
By Xolkiyr, with 2 replies.
Last reply by Xolkiyr, over 8 years ago:
I was originally using the imported Label Class but then I got frustrated, imported the Counter Class and modified it to my liking. Now it works.
Stopwatch/counter for game
By uKGeorG3X1z, with 2 replies.
Last reply by danpost, over 8 years ago:
Please refer to my
Value Display Tutorial
scenario.
I can't figure out why this won't come up
By Xolkiyr, with 4 replies.
Last reply by Xolkiyr, over 8 years ago:
Didn't even see your comment about Act being capitalized. Fixing that fixed the issue. Thank you.
Q&A
By Adi18, with 8 replies.
Last reply by Adi18, over 8 years ago:
thank you !!!
Change text
By Maus2525, with 1 reply.
Replied to by danpost, over 8 years ago:
What you saw in the JOC tutorial was image files that were named appropriately to be read in a specific order. You are creating your own images and must likewise arrange them to be iterated through in some order. An array would be helpful here. You could put the created images in an array, but there is no need to keep them once they are drawn on the background image. Better would be a String array, since strings are what you start with: <Code Omitted>Then the for l
Align Left
By Maus2525, with 6 replies.
Last reply by Maus2525, over 8 years ago:
Okay, thanks!
Scrolling Background in direction of actor...
By Timmy_11, with 13 replies.
Last reply by Timmy_11, over 8 years ago:
Thanks it'll work now thanks for your help and for your time :)
Stop
By Adi18, with 4 replies.
Last reply by Adi18, over 8 years ago:
Thank you!
Jigsaw Puzzle
By sri.s, with 5 replies.
Last reply by danpost, over 8 years ago:
sri.s wrote...
https://www.youtube.com/watch?v=MpUf9OkoLE8&t=1077s check this one
If you want all pieces to look the same (barring edges).
Ak47 can't be put in help.
By Bandito, with 3 replies.
Last reply by Bandito, over 8 years ago:
nvm the computer just didn't decide to work
How to do it
By Adi18, with 6 replies.
Last reply by danpost, over 8 years ago:
You could separate the area into individual worlds that will fit the screen.
The game pauses when switching worlds
By Arakniode, with 11 replies.
Last reply by Arakniode, over 8 years ago:
danpost wrote...
What is the purpose of the act method with the call to 'getTile' in the TileObject class? Having and Actor object (or null) returned and not doing anything with it is like doing nothing. You can remove the act method from that class. The 'getTile' method in the Tile class is also quite pointless. To call the method, you would need a reference to the 'this' that is returned. The 'x' and 'y' parameters are not used in the method and therefore have no effect on the returned value (and never will if you absolutely return 'this').
Thanks for the answer! It's true that
Counter makes game Laggy
By Skleyrow, with 8 replies.
Last reply by danpost, over 8 years ago:
Skleyrow wrote...
Its a Bomber man Game so i want to have a power up which changes the game speed.
The power up should only make the bomber man actor move faster. You would not want the enemies to move faster as well. Then, what would be the point of the power up (in fact, it may make it a negative power up as quicker accurate reaction times would be needed by the user to avoid the enemies). What you want to do is regulate the speed of the bomberman with a timer to produce a delay between each step in its movement. Then lower the limit of the timer to allow the actor to move more
Randomly place objects
By Heet_Patel, with 6 replies.
Last reply by danpost, over 8 years ago:
You cannot call 'addObject' from an Actor class without first referencing a world to add the object into. Also, there is this:
danpost wrote...
The XWorld class has this method: << Code Omitted >>
which should be a big hint.
Mouse dragging and collision
By maenstru56, with 19 replies.
Last reply by maenstru56, over 8 years ago:
It works perfectly! Thank you for all the help and the patience, I learned how to do a lot of stuff from you, keep it up :)
289
290
291
292
293
294
295
X