I meant to ask if you drew the rifleman and sniper images: they look homemade, and if so, they look awesome, especially if there is a chance of animation.
Looking pretty good. Looking forward to the update, although I'd recommend getting rid of the green background surrounding the person that follows the mouse.
and remember to reset and perhaps cap the gravity variable, because not resetting the variable will lead it to plummet unnaturally down when not on the ground. (a constant for the acceleration, and a variable for the actual movement.)
You're using the move(int b) function. Essentially, it moves you some pixels (assuming that the cell size is 1 pixel) towards the direction you are facing. If you want gravity, move function just won't cut it: You will need to use the setLocation(int x, int y) function, and with gravity, you will need to store some integer value (if you are not going to use the smooth mover, although using that is highly recommended if you want good smooth jumps, but then you will need to use doubles or floats, but neither one don't work with the setLocation function by itself something that can be somewhat mitigated by typecasting) to store your y-speed value.
It'd look something like this
private int gravpull = 0;
public void act()
{
if(notTouchingGround())
{
gravpull ++;
setLocation(getX(), getY()+gravpull);
}
}
public boolean notTouchingGround()
{
blah blah blah, although in this case you can settle for return getY() < (some height);
}
Hope that helps.
2011/11/12
MegaDude
2011/11/10
Final Stand
2011/11/8
DrHorriblejr land
2011/11/8
Final Stand
2011/11/8
MegaDude
2011/11/3
Bugs Life
2011/10/26
first game
2011/10/26
first game
2011/10/23
Shooter