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

kenshinakh's Comments

Back to kenshinakh's profile

Alright so new update, i added 2 new levels, and there's a new power availiable for use. Tell me what you guys think so far about this game. (an also, is it keeping w/ the theme well? just checking again.). New area codes are posted up on top.
so far so good :-), There's a tiny bug when you jump onto a crate. It sometimes have the person stick half way in the crate.
To be able to move away, the boolean should only return true when going right, and there is a box. If there is a box to the right, but left is pressed, moving is possible. (Something along the line like that>).
Hm. You can tell the character if it is not clear in front (you can call a separate boolean method that does the check here), and if it is not clear, do not move.
You can try using getOneIntersectingObject(Crate.class); and then you have to check if the crate's getX() is > than figure's getX() (meaning the crate is to the right).
So how are you going to relate this to to the theme?
So far so good! Keep it up.
All I did was change the order of act ( I just realized that the error was because guard1 is trying to act when it has been removed already). So all i did was tell the gaurd to remove itself once it is done with everything else.
Okay so I compiled it, and it works now, but don't knwo how to send it to you, so I'll post the parts i changed here: in Gaurd1 public void checkBullet() { if(canSee(Bulletleft.class)||canSee(Bulletright.class)) { getAWorld().deleteBullet(getOneIntersectingObject(Bulletright.class)); getAWorld().deleteGuard(this); } } public Archerworld getAWorld() { return (Archerworld)getWorld(); } in archerworld public void deleteBullet(Actor actor) { removeObject(actor); }