# How do I move a image around the screen

**URL:** <http://forum.squareline.io/t/how-do-i-move-a-image-around-the-screen/2609>\
**Category:** How to\
**Created:** [March 2, 2024, 7:55pm UTC](http://forum.squareline.io/t/how-do-i-move-a-image-around-the-screen/2609 "2024-03-02T19:55:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustangproject](http://forum.squareline.io/letter_avatar_proxy/v4/letter/m/53a042/32.png) [@mustangproject](http://forum.squareline.io/u/mustangproject)\
**Post date:** [March 2, 2024, 7:55pm UTC](http://forum.squareline.io/t/how-do-i-move-a-image-around-the-screen/2609/1 "2024-03-02T19:55:37Z")

</div>

I found it in the documentation: Use lv\_obj\_set\_x(obj, 10);or lv\_obj\_set\_y(obj, 10); To easily move the image around!

### I have a linear gauge image and I want to move a needle image up and down the screen over the gauge image.

### I have tried using: lv\_img\_set\_offset\_y(ui\_Needle,

```
               (myoffset) );

```

I have successfully used set angle many times to rotate an image over a gauge image and this works great. I believe that in reading the documentation set\_offset\_y or x is limited. What is the correct way to move the needle in a linear fashion?

### Screenshot or video

### Others

- **SquareLine Studio version:** 1.3.4
- **Operating system:** Windows 10
- **Target hardware:** ESP32 Adruino

---

<div class="post-metadata">

**Author:** ![Marian\_M](http://forum.squareline.io/letter_avatar_proxy/v4/letter/m/4af34b/32.png) [@Marian\_M](http://forum.squareline.io/u/Marian_M)\
**Post date:** [March 3, 2024, 11:36am UTC](http://forum.squareline.io/t/how-do-i-move-a-image-around-the-screen/2609/2 "2024-03-03T11:36:09Z")

</div>

Try show image, because your explain isnt clean.  
And for possition use set positions not offsets
