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
isTouching(Class) - in Greenfoot 2.2?
By HaselnuesseTo, with 3 replies.
Last reply by danpost, almost 12 years ago:
These are how the methods were in the Animal class of my G2.3.0 USB download:
How to make the enemy's jump height change randomly
By cloud41910, with 3 replies.
Last reply by cloud41910, almost 12 years ago:
It's working now i made a higher value for the jump method
Creating paths in Arrays. - Maze
By connorxclose, with 5 replies.
Last reply by danpost, almost 12 years ago:
I used the technique described above in my
Crazy Cheatin' Maze
scenario.
Where can I get objetcs for my games?
By aconal, with no replies.
I want to know where can I get objetcs for my games, as kitchens, TV, sofas... For example, for textures I´ve seen this page: http://freestocktextures.com/search And there are a lot of sprites in Google, but I don´t know where to find images of objetcs. Thanks!
how to make a finish/starting line
By DesignerOrb362, with 1 reply.
Replied to by danpost, almost 12 years ago:
Your class structure would determine the best way to go about what you are trying to do here: For an example of what I mean by class structure, one might be something like this:
World > Course Actor > Car > BlueCar, GreenCar, RedCar Other > none
.Jar export still not working
By MarsMax, with 1 reply.
Replied to by davmac, almost 12 years ago:
Please do not post multiple discussion topics for the same problem.
Moving 2 actors like they're "stuck"
By Bahb, with 2 replies.
Last reply by Bahb, almost 12 years ago:
Thanks man! You helped me out alot. It seems to be working now, you make it sound easy though :P You are doing a great job here danpost, respect.
How to make different enemy spawn if enemy is killed
By cloud41910, with 5 replies.
Last reply by cloud41910, almost 12 years ago:
I got it now thanks for helping me out
Trying to use drawLine in world subclass
By CKnox, with 7 replies.
Last reply by CKnox, almost 12 years ago:
Thankyou for that explanation danpost.
How to apply HealthBar
By cloud41910, with 76 replies.
Last reply by danpost, almost 12 years ago:
Please ... new topic, new discussion -- and show what you tried.
Let an Object wait while the rest isnt waiting
By Sleeyz, with 1 reply.
Replied to by danpost, almost 12 years ago:
Unless you are required to use a switch statement in your code, this method can be reduced to the following: <Code Omitted>To make it only process every other act cycle, you need to add a boolean instance field, change its value every act cycle and only process the code when the value is only either true or false. I change 'while' to 'if' because you do n
Click Two or More Places
By meazalplaq, with 20 replies.
Last reply by danpost, almost 12 years ago:
meazalplaq wrote...
Is it possible to utilize an instance Boolean field to register whether a mouse click has occurred, and store that response? For example, if a mouse click has occurred in the Location_11.class, then when the user re-enters Location_11 again, remove Dialog_10.class and replace it with Dialog_11.class? Is there a way to do this?
Absolutely. A boolean field could be used to display two different dialogs, which may be fine in your case. You can display the second one over and over after the first or you could alternate between the two. On the other hand, you coul
Adding an object when key is pressed
By Kel123, with 8 replies.
Last reply by danpost, almost 12 years ago:
Ok. Your problem is that 'getKey' will only return a keystroke once. If 'space' is pressed and is returned by 'getKey' in your world class code when checking for 'enter', then 'getKey' will not return 'space' when checking for 'space'. You can only feasibly use 'getKey' once during any act cycle (a cycle being the acting of the world and the acting of all objects in that world). Either you need to save the returned value in a field in the world class and check the value of that field when checking for 'space' in the other class, or you need to use 'isKeyDown' for one (or both) of them. Un
GameOver Screen Help
By hdeforest, with 1 reply.
Replied to by danpost, almost 12 years ago:
You probably have a 'getValue' method in the counter class and can use 'scoreCounter.getValue()'.
Spent an hour on it, still can't figure it out
By Dillybar, with 3 replies.
Last reply by danpost, almost 12 years ago:
In line 54, you have 'if
not
"d" down is false'. That could screw up the works (it is not similar to the code at line 26).
627
628
629
630
631
632
633
X