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.
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).
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);
}
2009/11/22
Midori World
2009/11/21
Archerman
2009/11/19
Archerman
2009/11/19
Archerman
2009/11/19
Archerman
2009/11/18
MonsterHunter
2009/11/18
Global Men
2009/11/18
Archerman
2009/11/18
Archerman