# Image not moving across the screen but .pos is changing \[SOLVED\]

**URL:** https://discourse.psychopy.org/t/image-not-moving-across-the-screen-but-pos-is-changing-solved/17303
**Category:** Coding
**Created:** [October 16, 2020, 9:58am UTC](https://discourse.psychopy.org/t/image-not-moving-across-the-screen-but-pos-is-changing-solved/17303 "2020-10-16T09:58:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marmite](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/marmite/32/11122_2.png) [@marmite](https://discourse.psychopy.org/u/marmite)
#### Post date: [October 16, 2020, 9:58am UTC](https://discourse.psychopy.org/t/image-not-moving-across-the-screen-but-pos-is-changing-solved/17303/1 "2020-10-16T09:58:55Z")

</div>

Hi there,

I’m trying to make an image move a certain number of pixels up the screen with every repetition through the loop.  
The output shows that the y value of imgm.pos is increasing, but the image does not actually move.  
Where am I going wrong?

output:

[0. -200.]  
[0. -100.]  
[0. 0.]

```auto

from psychopy import visual, event

win = visual.Window(
    size=[1500, 1000],
    units="pix",
    color="white")

imgm = visual.ImageStim(
    win=win,
    image="monkey.png",
    units="pix")

imgm.pos = [0,-300]

# Number of repetitions
epoch = 3

imgm.draw()
win.flip()
for e in range(epoch):
    event.waitKeys()
    imgm.pos[1] = imgm.pos[1]+100
    imgm.draw()
    win.flip()
    print(imgm.pos)

```

Cheers!

EDIT: Solved by replacing: imgm.pos[1] = imgm.pos[1]+100 with imgm.pos = [0,imgm.pos[1]+100]. Seems like you need to repeat the x value.
