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
Getting gun to shoot when picked up
By kzb94, with 5 replies.
Last reply by danpost, over 11 years ago:
I would change this line: <Code Omitted>to this: <Code Omitted>
Distance list sorting
By erdelf, with 4 replies.
Last reply by erdelf, over 11 years ago:
yeah thx, i think i am too tired to code right now
Need Help! Animated walking character...
By Looopyhooopy, with 2 replies.
Last reply by Looopyhooopy, over 11 years ago:
Worked it out :D
How to get variables from different Objects from a Class for a Text-Class
By Midas97, with 1 reply.
Replied to by erdelf, over 11 years ago:
in the Informator Class, change line 19-20 with this <Code Omitted>you tried to use a method in the RoboterWelt class but u wrote that the method should be in the normal World class
Random Attacks
By Tucksta, with no replies.
I'm looking for a good fighter game where the boss makes random attacks against the player. It is a kung fu style game - so preferably something linear. Any suggestions??
Help with order of commands including while loop
By wybrasr, with 4 replies.
Last reply by danpost, over 11 years ago:
Actually, it is more about the act cycle and display frames. Usually, no changes in the display are made until one (or more) complete act cycles have been executed (lag due to various programming techniques and extensive processes can mess with this). The system is executing the act cycle and not refreshing the display. Adding the 'delay' gives the system a chance to refresh the display. I believe that 'getWorld().repaint()' may be the proper call, however. Normally, all visual changes in an 'act' method are shown after the 'act' method has completed. You can move an actor back and for
Kinect Install issues
By Genevieve, with no replies.
Hi, I am having an issue installing the kinect drivers for a suite of iMacs and MacBook Pros (10.8).
Whats installed
Xcode Mac Ports Command Line Tools From Greenfoot sudo /opt/local/bin/port -v selfupdate YES sudo /opt/local/bin/port install libtool YES sudo /opt/local/bin/port install libusb-devel +universal
won't install ( I have installed libusb but can't find devel or universal)
sudo /opt/local/bin/port install boost YES sudo /opt/local/bin/port install wxWidgets-devel YES (but this is outdated wxWidgets-3.0 installed) OpenNI installed Kinect Driver installed NITE installed When trying to run a test to see if the Kinect is up and running Im getting this error "one of the following nodes could not be enumerated" Please can you tell me what I am missing?
Problem with Greenfoot.isKeyDown().
By Croco, with 2 replies.
Last reply by Croco, over 11 years ago:
Thank you so much, Danpost. I did end up adding an else to all of the button press checks. I realized that I also overlooked the fact that I should probably set an image for when available=false. Haha. So, for "q", and "2", it might have been working, and I just didn't have a visual cue to realize. However thank you very much for your help. have a good day! :D
Platformer Collision Help
By AlexFeetham, with 1 reply.
Replied to by AlexFeetham, over 11 years ago:
This has now been fixed.
how do i check if my shield is still there
By thesaminator2000, with 1 reply.
Replied to by bourne, over 11 years ago:
Need context. What is considered a shield? Is it an Actor in the World? Does your actor (who owns the shield) have reference to it? Are you wanting to know if the shield is close by? At a certain side of the actor?
Limiting a keyDown
By docness14, with 7 replies.
Last reply by bourne, over 11 years ago:
Well you could make the variable spaceKeyIsDown a static class field. But then I think you will run into the problem that the first dice who acts will roll and never the others. To overcome this, once a dice has been rolled, it should no longer listen for the spacebar being pressed. But then you might need to consider when the dice should listen again. In addition to making sure the actual "first" dice rolls first i.e. it acts first before the others in the World. An easier approach might be to handle all this somewhere else like in the World class, and each time the spacebar is pressed, a
Changing the font types for text
By qwertyuiop, with 1 reply.
Replied to by trias95, over 11 years ago:
The greenfoot image API has a lot of useful information about fonts >
Click here
Also, there are already discussion topics about this
here
,
here
and
here
. Good Luck
How to click on an actor and remove it from the world
By qwertyuiop, with 15 replies.
Last reply by qwertyuiop, over 11 years ago:
Yeah it will be fine thanks, could you also help me with something else to do with changing the font types as I have read an earlier post but can't get it to work.
To display random images from the right side
By samarthj, with 1 reply.
Replied to by danpost, over 11 years ago:
There are multiple things wrong with this code: (1) you cannot just create a GreenfootImage object without giving one or more parameters (you cannot use 'new GreenfootImage()' with nothing inside the parenthesis); (2) you cannot set a field that holds a WrongAnseq1 object with a GreenfootImage object unless the WrongAnseq1 class is a subclass of the GreenfootImage class; (3) you cannot use both 'addObject' and 'setImage' in the same class without one of them being preceded with an object reference and a 'dot' operator (one is a World class method and the other is an Actor class method); (
about animation
By nungzabza1916, with 2 replies.
Last reply by nungzabza1916, over 11 years ago:
Thank you danpost. ^^
706
707
708
709
710
711
712
X