# Why isn't my code working? (Creating sprite at created sprite's position)

**URL:** https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828
**Category:** Questions about Thunkable X
**Created:** [June 10, 2021, 5:14pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828 "2021-06-10T17:14:40Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![aarroyor06dzhylk](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@aarroyor06dzhylk](https://community.thunkable.com/u/aarroyor06dzhylk)
#### Post date: [June 10, 2021, 5:14pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/1 "2021-06-10T17:14:41Z")

</div>

![code](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/3/13581a7a065ed86bfde458ebe67ef2fc058c9098.png)

Im trying to create a sprite at the coordinates of a sprite that has already been created, but no sprite appears. How can i fix this?

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [June 10, 2021, 5:29pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/2 "2021-06-10T17:29:29Z")

</div>

The do section of create Sprite i currently bugged as described here:

> <https://github.com/thunkable/thunkable-issues/issues/876#issue-860535652>
>
> This is in Thunkable X the regular builder. The “do” section of the create sprit…e block is broken. Certain (several different types like create label and label set text at least) blocks in this section will stop the processing of the page. 
> 
> You also can’t put create sprite blocks in the “On Start” block, they won’t execute.
> 
> Here’s a simple example: https://x.thunkable.com/copy/d3cee153faebbe8cf6590351e06e4649

---

<div class="post-metadata">

### Author: ![aarroyor06dzhylk](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@aarroyor06dzhylk](https://community.thunkable.com/u/aarroyor06dzhylk)
#### Post date: [June 10, 2021, 5:32pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/3 "2021-06-10T17:32:02Z")

</div>

Thanks for clarifying that.

Could there be any workaround for this?

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [June 10, 2021, 5:51pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/4 "2021-06-10T17:51:34Z")

</div>

Put the block ubderneat each other and replace the green component block with the following.  
Use a list block to get the last item of the list.  
The list is the get list of image sprites block.

---

<div class="post-metadata">

### Author: ![aarroyor06dzhylk](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@aarroyor06dzhylk](https://community.thunkable.com/u/aarroyor06dzhylk)
#### Post date: [June 10, 2021, 5:56pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/5 "2021-06-10T17:56:20Z")

</div>

Sorry, but i haven’t used lists before in Thunkable.

Could you show me how they work?

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [June 10, 2021, 6:19pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/6 "2021-06-10T18:19:50Z")

</div>

This may be a temporary solution.  
 ![Screenshot_20210610-201805_Chrome](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/7/97a8bb3c5d81f48283478a0dd5f907f6da6d34c9.jpeg)  
You can remove the draggable block its Just there for testing.  
Does not work with events for the screen.

---

<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 10, 2021, 7:26pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/7 "2021-06-10T19:26:39Z")

</div>

Any chance you can post a link to your project?

I want to make sure the green `component` blocks are being used correctly because you have them nested which could cause conflicts.

---

<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:20pm UTC](https://community.thunkable.com/t/why-isnt-my-code-working-creating-sprite-at-created-sprites-position/1337828/8 "2024-11-08T13:20:19Z")

</div>


