This site requires JavaScript, please enable it in your browser!
Greenfoot back
groengeel
groengeel wrote ...

2012/11/17

New Greenfoot4Android discussion

1
2
3
4
5
6
-nic- -nic-

2012/11/18

#
send me the files and ill have a look if you want
Upupzealot Upupzealot

2012/11/18

#
A new version of this scenario was uploaded on Sun Nov 18 06:14:27 UTC 2012 *A bug which id found by groengeel has been fixed. *Add a warnning information if you don't have your world started. *Add a exception information if any exception has been caught. You can enter the Greenfoot class in greenfoot package and turn "debug" to true to turn on the DebugMod.If so, the scenario may become a little bit slower, but exceptions would be caught then.
-nic- -nic-

2012/11/18

#
send me the file and i will have a look if you want
erdelf erdelf

2012/11/18

#
thx. it seems I misspelled something
Upupzealot Upupzealot

2012/11/18

#
DebugMod is very useful I think, have a try.
erdelf erdelf

2012/11/18

#
is there a way to get the errors without uploading to the device?
-nic- -nic-

2012/11/18

#
@erdelf does that include the emulator
Upupzealot Upupzealot

2012/11/18

#
What do you mean by
erdelf wrote...
is there a way to get the errors without uploading to the device?
juest replace the greenfoot folder os enough
erdelf erdelf

2012/11/18

#
I mean the exceptions, @-nic- my emulator crashes everytime
-nic- -nic-

2012/11/18

#
does it say anything in the cconsole?
erdelf erdelf

2012/11/18

#
nothing. my App executes finally and the game starts, now I just have to rewrite the controls.
erdelf erdelf

2012/11/18

#
my code for mouse locations doesn't work for me. Maybe one of you could help me. The following is in the act method, but the player object keeps going up:
                MouseInfo mouse = Greenfoot.getMouseInfo();  
                if(mouse!=null)
                {  
                    if (Greenfoot.mouseClicked(null)) {
                        mouseY = Greenfoot.getMouseInfo().getY();
                        mouseX = Greenfoot.getMouseInfo().getX();
                    } 
                    if(getY() > 109)
                    {
                        if(mouseY < getY())
                        {
                            setLocation(getX(), getY() - 5);
                        }
                    }
                    if(getY() < 554)
                    {
                        if(mouseY > getY())
                        {
                            setLocation(getX(), getY() + 5);
                        }
                    }
                }
            
Upupzealot Upupzealot

2012/11/18

#
@erdelf have you update the code? In DebugMod what happened then?
erdelf erdelf

2012/11/18

#
I had a few spelling errors in the images
erdelf erdelf

2012/11/18

#
I fixed them and I got the app. the blue part isnt a part of the app. Now I have only problems with a few little things, could you look over my mouse code?
There are more replies on the next page.
1
2
3
4
5
6