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

Green-Foot

North Gwinnett HS, Stone Mountain, Ga

Green-Foot's scenarios

play Test Version 2.

Green-Foot's collections

This user has no collections

Recent Comments | Show All

Green-Foot

2010/7/15

Hey brother, in your frog. Instead of all that mumbo, jumbo you had written up replace it with this **CODE** import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) public class Frog extends Mover { public void act() { checkKeyPress(); } public void checkKeyPress() { if(Greenfoot.isKeyDown("left")) { setLocation(getX() - 5, getY()); } if(Greenfoot.isKeyDown("right")) { setLocation(getX() + 5, getY()); } if(Greenfoot.isKeyDown("up")) { setLocation(getX() , getY() - 5); } if(Greenfoot.isKeyDown("down")) { setLocation(getX(), getY() + 5); } } } Way to easy haha. Goodluck.
Nice bro, I miss class haha it was to easy