# I am trying to move Image 1 to var X and var Y when pressed, its not working

**URL:** <https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104>\
**Category:** Questions about Thunkable X\
**Created:** [June 14, 2024, 1:21am UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104 "2024-06-14T01:21:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shriti.shahsi6](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@shriti.shahsi6](https://community.thunkable.com/u/shriti.shahsi6)\
**Post date:** [June 14, 2024, 1:21am UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/1 "2024-06-14T01:21:56Z")

</div>

Help it move to var x and var y[quote=“shriti.shahsi6, post:1, topic:3057104, full:true”]  
Help it move to var x and var y  
[/quote]

 ![Screen Shot 2024-06-13 at 9.23.26 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/2669db32b31eb56ab75bb8c0ca58cb5937391f4c.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 14, 2024, 1:45am UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/2 "2024-06-14T01:45:52Z")

</div>

Can you post a link to the project?

How have you initialized app variables X and Y?

What happens if you display the values of app variables X and Y in a label?

---

<div class="post-metadata">

**Author:** ![shriti.shahsi6](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@shriti.shahsi6](https://community.thunkable.com/u/shriti.shahsi6)\
**Post date:** [June 15, 2024, 12:26am UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/3 "2024-06-15T00:26:18Z")

</div>

Sure I can send a link [Thunkable](https://x.thunkable.com/copy/b9ae454ab8c27ba68b3e1d9a1a45a60c)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 15, 2024, 1:11am UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/4 "2024-06-15T01:11:17Z")

</div>

I don’t think you can set an Image’s x and y position in Snap to Place. Try it in a Drag & Drop project instead.

---

<div class="post-metadata">

**Author:** ![shriti.shahsi6](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@shriti.shahsi6](https://community.thunkable.com/u/shriti.shahsi6)\
**Post date:** [June 15, 2024, 5:39pm UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/5 "2024-06-15T17:39:27Z")

</div>

Are you positive

---

<div class="post-metadata">

**Author:** ![shriti.shahsi6](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@shriti.shahsi6](https://community.thunkable.com/u/shriti.shahsi6)\
**Post date:** [June 15, 2024, 5:41pm UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/6 "2024-06-15T17:41:56Z")

</div>

since i did it and deleted it by accident

---

<div class="post-metadata">

**Author:** ![marion.dorsett](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/marion.dorsett/32/175129_2.png) [@marion.dorsett](https://community.thunkable.com/u/marion.dorsett)\
**Post date:** [June 15, 2024, 9:18pm UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/7 "2024-06-15T21:18:21Z")

</div>

@shriti.shahsi6 I was able to get it to work using these blocks:

 ![move-image-01](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/6/9643cc31c46109504c339455c0f01f4bbc20c9c6.png)

The difference I saw in your blocks was that it appeared you were using the Any Component block, but I tried that and it worked as well…so not sure what your issue was. I hope you weren’t too far along in the app ☹

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [September 13, 2024, 9:18pm UTC](https://community.thunkable.com/t/i-am-trying-to-move-image-1-to-var-x-and-var-y-when-pressed-its-not-working/3057104/8 "2024-09-13T21:18:59Z")

</div>

Closed on September 13, 2024, 9:18pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
