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
Connecting three objects
By gdwd4, with 14 replies.
Last reply by danpost, about 12 years ago:
gdwd4 wrote...
ok the code in Tile.class works but now I'm having an error when I try to use your code from a previous post. < Code Omitted > Error message: "incompatible types" highlighting "(0, 0, Tile.class);"
Ok, I missed that. The object has to be cast as a Tile object before setting it to a variable that can only hold a Tile object. Change it to this: <Code Omitted>
Drag'n'drop border problem
By Phiesel, with 3 replies.
Last reply by danpost, about 12 years ago:
Phiesel wrote...
The class in which this code resides is named 'vocab'.
Well, I guess I asked too quickly on this. While looking at your error trace, I should have been able to tell; though it is actually called 'Vocab' (with a capital 'V'). You will probably find that 'draggedWord' and 'tf' will contain the same object. You should be able to get away with changing all occurrences of 'draggedWord' to 'tf' and removing lines 11 through 15. Also, the 'return' statement at the end is totally unnecessary, as there is no code after it with which to not process and you are not inside
How to add text
By sengst, with 11 replies.
Last reply by sengst, about 12 years ago:
ok, thanks
How do I set values in an array at the start of a class?
By K_wow, with 22 replies.
Last reply by K_wow, about 12 years ago:
Oh, the keyboard can detect at least two keys close together, and my game has no problem with single player, but the keyboard screws up in multiplayer, when there can be up to six keys held down at once.
CanTurnLeft() Method
By Pamsho, with 11 replies.
Last reply by Pamsho, about 12 years ago:
yep im still working, thanks a lot for the answer!! i'll try it
Camera Position Change
By Jeb_CC, with 3 replies.
Last reply by KalleLarsson, about 12 years ago:
if you want a ready-made example (infinite) scrolling scenario, which you can learn from, or just add your game to, you can use scenario 12055 which I've uploaded. Its really an empty shell which you can bulid your game into, the actors you see when you run it are just there to show that the scrolling works
Checking if a class is abstract
By Kartoffelbrot, with 2 replies.
Last reply by Kartoffelbrot, about 12 years ago:
Thank you :)
SetPaintOrder problem
By Draymothisk, with 1 reply.
Replied to by davmac, about 12 years ago:
My code works properly until I use "setPaintOrder" in my world, then it seems the act method on some of my Actors' stops working as a result
That sounds pretty unlikely. More detail needed.
how do i make something only appear out of the bush once
By murraycod, with 4 replies.
Last reply by GreenGoo, about 12 years ago:
Heck, missed a bit. You get the idea though. Then once the pokemon has been killed/ knocked out, set it to false again. Just make sure to set pokemonPresent to true in each case.
Terminal window
By sharifahhilwa, with 2 replies.
Last reply by sharifahhilwa, about 12 years ago:
got it!! Thankss
How to keep up frame rates
By Artyoum, with 11 replies.
Last reply by Artyoum, about 12 years ago:
Oh, ok, I get it. Simply put, All I may have to do is just remove the methods which scroll the background and just leave the ones which scroll the objects; something around that area, yes?
add rectangle and fading
By davemib123, with 1 reply.
Replied to by davemib123, about 12 years ago:
nevermind, think I have it done :D
adding text
By davemib123, with 7 replies.
Last reply by davemib123, about 12 years ago:
thanks. i'll give it a go.
Help?!
By GreenGoo, with 5 replies.
Last reply by GreenGoo, about 12 years ago:
The blog concerns exactly what I was trying to do on other question... Thanks, it will be a real help.
Using setLocation() or some variant with doubles?
By GreenGoo, with 12 replies.
Last reply by GreenGoo, about 12 years ago:
Okay thanks for the help, I've found it. Yeah that code was very very rough, I just wanted to get some idea of what I should do and see how it looked. Thanks again!
658
659
660
661
662
663
664
X