Ask coding questions

← Back to all posts
Why is this movement so choppy???
h
okalisl (1)

I have been working on a kaboom js game and have noticed that whenever I move the character, it just moves about 25 pixels and stops. What is going on and how can I get a better more smooth movement? Link: https://replit.com/@okalisl/Loki-Game#scenes/main.js

Comments
hotnewtop
okalisl (1)

Oh nevermind. I have solved the issue.

MrVoo (190)

Well if you just do something like xPos = xPos + 25; it's going to look choppy

okalisl (1)

Really @MrVoo? I code games in the exact same format and there just fine. Example: https://replit.com/@okalisl/Disenchantment-RPG