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

Report as inappropriate.

sara.buades.ayala
sara.buades.ayala presents ...

2014/11/13

BABYgame

JUGADOR 1 (bebe negro)
Teclas:
W: Moverse hacia arriba
A: Moverse hacia la izquierda
Z: Moverse hacia abajo
S: Moverse hacia la derecha

JUGADOR 2 (bebe blanco)
Flecha hacia arriba: moverse hacia arriba
Flecha hacia abajo: moverse hacia abajo
Flecha hacia la derecha: moverse hacia la derecha
Flecha hacia la izquierda: moverse hacia la izquierda

3196 views / 8 in the last 7 days

Tags: game with-source

open in greenfoot
Your browser does not support the canvas tag.
smplmarcelosmplmarcelo

2014/11/15

i'm using a 2.3 version i can run the game but if i hit a cupcake a there will be a message that will pop out. and there's no comida value that will show in the lower left and right of the game because of the error on the showText
smplmarcelosmplmarcelo

2014/11/15

when i hit the cupcake in the greenfoot app it says: java.lang.NoSuchMethodError: greenfoot.World.showText(Ljava/lang/String;II)V at Bebe.buscaMagdalena(Bebe.java:38) at Bebe.act(Bebe.java:17) at greenfoot.core.Simulation.actActor(Simulation.java:568) at greenfoot.core.Simulation.runOneLoop(Simulation.java:526) at greenfoot.core.Simulation.runContent(Simulation.java:215) at greenfoot.core.Simulation.run(Simulation.java:205)
danpostdanpost

2014/11/15

I have never seen that message, "NoSuchMethodError", during runtime. What is now your line 38 in the Bebe class? (copy it and paste it here)
danpostdanpost

2014/11/15

Also, this part looks very strange -- (Ljava/lang/String;II)V I wonder if you got a good download on the new version. You did download Greenfoot version 2.4 and are now running it, correct?
smplmarcelosmplmarcelo

2014/11/15

not yet I'm downloading the 2.4 version I'll leave a comment later if i still have a problem. Thanks
smplmarcelosmplmarcelo

2014/11/15

there's no error now. Thanks :)
smplmarcelosmplmarcelo

2014/11/18

Help in here there's an error here if ( canSee(Hamburger.class)) I'm trying to change the cupcake to hamburger
danpostdanpost

2014/11/18

First, you need to add an image of a hamburger to the 'images' folder of your project. Then you can use 'setImage' on a Magdalena object.
smplmarcelosmplmarcelo

2014/11/19

It's ok now thanks :). can i ask another question about the codes that we should use to transfer to another level or world after this level is finished?
danpostdanpost

2014/11/19

Yes, but please do so by creating a new 'Discussion' thread. Thee, code posts are easier to view and reference; also, others may benefit by seeing how to correct their similar problems (plus, your scenario page does not get filled with a bunch of comments that deal with bit and pieces of the scenario, instead of it in general as a whole).

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.