only one thing when there are alot of ppl waiting for the elevator like 17 ppl and an empty elevator arrives the 17 ppl disapear (so become 0) and the elevator only has 5 ppl in it
for movement you should use:
private double a = 300;
private double b = 200;
private int speed = 2;
public void act()
{
// Add your action code here.
//move(1);
int x = getX();
int y = getY();
int ww = getWorld().getWidth();
int wh = getWorld().getHeight();
if (Greenfoot.isKeyDown("up")|| Greenfoot.isKeyDown("w")) //for moving forward
{
a += Math.cos(Math.toRadians(getRotation()))*speed;
b += Math.sin(Math.toRadians(getRotation())) * speed;
a = 1+(a+(ww-3))%(ww-2);
b = 1+(b+(wh-3))%(wh-2);
setLocation((int)a, (int)b);
}
}
when i hit the wall it sucks me up and then very slowely spits you out at the other side.
and i get stuck in the green blocks
beside that maybe fix the SUPER precise aim of the AI tanks and let em have a range wich they can shoot you cuz its annoying to get shot when u cannot see the enemy yet
2014/12/11
liftsss
2014/12/11
liftsss
2014/12/9
Maze/Obstacle Course Level 2
2014/12/9
La carrera del hamster
2014/11/28
Doom
2014/11/27
Doom
2014/11/25
Shoot!
2014/11/25
Shoot!
2014/11/25
Tank Game