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

gusbus123's Comments

Back to gusbus123's profile

thats a problem with your java, it works perfectly for me as in the speed. and no i cant add the source code right now as the year 11's at my school are doing this project as well so my teacher requested me to remove the source code.
@wagnerf have you tried using the "turnTowards()" code? it should be alot simpler.
@09blackn from the top of my head im thinking the code would be somewhat like this: [code]private boolean dead; // default is false public void act() { checkDeath(); if(!dead) { //other codes like movement and that. } } private void checkDeath() { if(!dead) { if(getOneIntersectingObject(Bullet.class)) //returns true if the zombie is hit by a bullet. { dead=true; Greenfoot.setImage("Blood.png"); } } }[/code] the checkDeath() could also just be part of the act, not a seperate "void".
you should have a limiter for the amount of zombies so the game doesnt become impossible.
so this is supposed to have items keep moving even though the game is paused?
you forgot to check the escape and delete button.
your check for the space bar being pressed should have a flag on it so that it only checks once during the time the space bar is pushed. So if you hold down space bar it wont keep on pauseing and playing.
guessing ur jono. thx for the random incorrect input.