Open Mo-Official opened 3 years ago
The bug is in sprites.py in the Player.update_movement_flags() and Player.movex()
elif self.vel.x//1 < 0: # BUG: movement_flag is being set to true falsely. # See issue here for more information. self.movement_flags["left"] = True
The problem is that self.vel.x becomes so small that when rounding up using self.vel.x//1 it is rounded to zero, thus losing the negative sign.
self.vel.x
self.vel.x//1
Possible solutions:
self.acc.x//1 != 0
The bug is in sprites.py in the Player.update_movement_flags() and Player.movex()
The problem is that
self.vel.x
becomes so small that when rounding up usingself.vel.x//1
it is rounded to zero, thus losing the negative sign.Possible solutions:
self.acc.x//1 != 0