# L9- Game trouble- moving

**URL:** https://forum.code.org/t/l9-game-trouble-moving/16219
**Category:** Unit and Lesson Discussion
**Tags:** csd-unit-6
**Created:** [May 14, 2018, 7:48pm UTC](https://forum.code.org/t/l9-game-trouble-moving/16219 "2018-05-14T19:48:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lsaylor](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/lsaylor/32/2149_2.png) [@lsaylor](https://forum.code.org/u/lsaylor)
#### Post date: [May 14, 2018, 7:48pm UTC](https://forum.code.org/t/l9-game-trouble-moving/16219/1 "2018-05-14T19:48:38Z")

</div>

My students are having trouble getting the code right for their game. They are trying to move their “nuke” left and right along with the circuit board buttons (similar to the Tug-o-War bug game), but pulling it toward their flags… But they can’t get the nuke to move. Please help!!

> **[Check out what I made](https://studio.code.org/projects/applab/RkdVALBuz8YngSaOPq0QoPUpI5igbxzWr5v2QlsO01g)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

### Author: ![elizabeth\_admin](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@elizabeth\_admin](https://forum.code.org/u/elizabeth_admin)
#### Post date: [May 14, 2018, 8:22pm UTC](https://forum.code.org/t/l9-game-trouble-moving/16219/2 "2018-05-14T20:22:12Z")

</div>

@lsaylor

Hi Lindsey,

Your students are updating the variable that they use to store the nuke’s x property, but they aren’t updating the property block itself. They will need to use the `setProperty` block to affect the position of the nuke.

You might want to make sure the students are clear that this line of code

`var nuke = getProperty("nuke", "x");`

just stores a number (the current x property of the “nuke” element) into the variable `nuke`. It doesn’t create any lasting relationship between the element’s x position and the variable.

Elizabeth
