so whenever i move my player to the left i move soo fast but when i move to the right i move very slow, although the speed is the same, i implemented delat time and it still is the same?? here is my code:
if sticky_keys:
if collide_sides == False:
if move_left != '':
if kb.is_pressed(move_left):
rect[0].x -= speed * dt
if move_right != '':
if kb.is_pressed(move_right):
rect[0].x += speed * dt
if move_up != '':
if kb.is_pressed(move_up):
rect[0].y -= speed * dt
if move_down != '':
if kb.is_pressed(move_down):
rect[0].y += speed * dt
if jump != '':
if jumped:
rect[0].y -= jump_velocity
jump_velocity -= 1
if jump_velocity < - 20:
jumped = False
jump_velocity = 20