How do you add gravity? also how do you code platforms?
The DoctorProfessor is out!
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)
private double velY;//the actors y movement; public void act() { velY += ((YourWorld) getWorld().GRAVITY;//to use the gravity like this you should declare it public static final; //... some other stuff; setLocation(getX() + velX, getY() + velY); }