mhh...
the gravity...
Well first I created a double parameter, that saves the y position (called yPosition and one, that saves the y-Speed (called ySpeed).
then i rewrited the setLocation method to:
setLocation(int x, double y){ super.setLocation(x,(int)y); yPosition=y;}
and I added a method
double getYPosition(){return yPosition;}
and in my act-method is written:
setLocation(getX(),getYPosition()+ySpeed);
Then all I have to do for the gravity is raising ySpeed for 0.1
And if the up-key is pressed, I subtract 0.2
If you although want an x-move you have to do the same with x.
2012/4/18
Bomb Combo
2012/4/18
Bomb Combo
2012/4/15
K_O_P HeliGame
2012/4/12
K_O_P HeliGame
2012/4/12
K_O_P HeliGame
2012/4/10
Jump!
2012/4/9
Bomb Combo
2012/4/5
Parking Escape
2012/3/31
Parking Escape