when user hit right key, walk_right get to set to true and when user left go of right key, walk_right get set to false.
i have really basic code to make my player move right or left.
i was wondering if there are any good physics formulas, to move right or left. and i dont mean jump. just right or left.
while(true){ if(walk_right == true){ x += dx; } else if(walk_right == false){ } if(walk_left == true) { x -= dx; } else{ } }