# Spot the bug - #177: Moving Sprite Position

**URL:** <https://forum.kirupa.com/t/spot-the-bug-177-moving-sprite-position/683764>\
**Category:** web dev\
**Created:** [October 17, 2026, 7:00am UTC](https://forum.kirupa.com/t/spot-the-bug-177-moving-sprite-position/683764 "2026-10-17T07:00:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VaultBoy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/vaultboy/32/31832_2.png) [@VaultBoy](https://forum.kirupa.com/u/VaultBoy)\
**Post date:** [October 17, 2026, 7:00am UTC](https://forum.kirupa.com/t/spot-the-bug-177-moving-sprite-position/683764/1 "2026-10-17T07:00:06Z")

</div>

Find the bug in this animation loop.

```js
let x = 0;
function tick() {
  x + 2;
  requestAnimationFrame(tick);
}
tick();

```

Reply with what is broken and how you would fix it.
