Inertia issue

Hello. here is my code for Inertia, but there is something strange when I go from Left to Right. It stays a while on vx 0 but not from Right to Left. Why?

2 Likes

I think I found my issue.
mySprite.vx <= 0.5 && mySprite.vx > 0 || mySprite.vx >= -0.5 && mySprite.vx < 0 I forgot about negatives values