# Using Logic blocks "and" & Set sprite's X/Y

**URL:** <https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, lists, arrangement, blocks\
**Created:** [August 8, 2021, 7:59pm UTC](https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307 "2021-08-08T19:59:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1negroup](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/1negroup/32/114253_2.png) [@1negroup](https://community.thunkable.com/u/1negroup)\
**Post date:** [August 8, 2021, 7:59pm UTC](https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307/1 "2021-08-08T19:59:51Z")

</div>

I am Using the #Logic blocks “and” inside the Set Sprite’s X/Y and i am not sure what is going on, Its just not working.  
I have used the #ListBlocks as well but That as well wasn’t working.  
Any Thoughts guys?

 ![Thunkable blocks XY Logic](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/47faa49246e29e693743228ff497153a23476220.png)

[https://x.thunkable.com/projects/607341062de3840011992cc9/8159dafb-8849-4f92-b1b9-e76ea67081bb/blocks](https://x.thunkable.com/projects/607341062de3840011992cc9/8159dafb-8849-4f92-b1b9-e76ea67081bb/blocks)

---

<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:** [August 8, 2021, 8:48pm UTC](https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307/2 "2021-08-08T20:48:01Z")

</div>

What is it you’re trying to do?

And why do you have the `set x` and `set y` blocks outside of the conditional `if` blocks?

I don’t think it’s possible to set multiple sprites’ positional values the way you’ve done it, using a single `set x` or `set y` block. You’d need to use a loop for that and reference each sprite individually.

---

<div class="post-metadata">

**Author:** ![1negroup](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/1negroup/32/114253_2.png) [@1negroup](https://community.thunkable.com/u/1negroup)\
**Post date:** [August 8, 2021, 9:11pm UTC](https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307/3 "2021-08-08T21:11:31Z")

</div>

Its to arrange the blocks in an organized manner, so i don’t need them in the “if than else” blocks at least I don’t think i do.

---

<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:** [August 9, 2021, 4:29am UTC](https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307/4 "2021-08-09T04:29:34Z")

</div>

Like I said, the problem is that you can’t set multiple sprites’ positional values (x,y) that way. You’ll need to do it one at a time. Try that first and make sure it works. Then, create a loop to set all of their values.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:17pm UTC](https://community.thunkable.com/t/using-logic-blocks-and-set-sprites-x-y/1438307/5 "2024-11-08T13:17:29Z")

</div>


