# Checking the image number of a sprite made with the "create" block stops "count" from continuing

**URL:** https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099
**Category:** Issues / Bugs
**Tags:** help
**Created:** [June 1, 2024, 10:17am UTC](https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099 "2024-06-01T10:17:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![elias.villa.8320](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elias.villa.8320](https://community.thunkable.com/u/elias.villa.8320)
#### Post date: [June 1, 2024, 10:17am UTC](https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099/1 "2024-06-01T10:17:13Z")

</div>

I’m making an Arkanoid-like game and it works perfectly(needs some refining, but gameplay works), especially the block creation at the start, but when I try to add a counter for how many of the created blocks are unbreakable(sprite image number 5, the bug is even if I use 1,2,3 and 4) it only makes 1 block and freezes.  
What could this be and how can I fix it(I have/can only check the app on T-live, I have android 13)

[game](https://x.thunkable.com/projectPage/664657e4d887d99d8e414d50)  
game generation works without the if

 ![Screenshot 2024-06-01 121207](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/9/c9a7fb7ce37e0010ed37c7e2e23667ebb3b8e365.png)

game freezes with the if

 ![Screenshot 2024-06-01 121343](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/c/9cf7e42a76a2f96366e97138d152d21e68ce8974.png)

---

<div class="post-metadata">

### Author: ![tiny\_apps](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@tiny\_apps](https://community.thunkable.com/u/tiny_apps)
#### Post date: [June 1, 2024, 7:06pm UTC](https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099/2 "2024-06-01T19:06:49Z")

</div>

I’m not sure you I understood it completely just looking at the blocks the variable should not have.dot In the names… can you first try with that

---

<div class="post-metadata">

### Author: ![elias.villa.8320](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elias.villa.8320](https://community.thunkable.com/u/elias.villa.8320)
#### Post date: [June 1, 2024, 7:47pm UTC](https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099/3 "2024-06-01T19:47:36Z")

</div>

That doesn’t matter, the game freezes even if the “if” is empty or if I use a different variable.

edit: I’ve removed the “.”, it didn’t fix it.  
The problem is the “component” block, if I look at the paddle or ball it works, but the blocks aren’t pre-placed(and can’t be, because I want to make a version where they keep coming down/generating) so it doesn’t give me that option.

---

<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 2, 2024, 11:16pm UTC](https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099/4 "2024-06-02T23:16:43Z")

</div>

I confirmed the freeze occurs with the “if” block. I’m not sure what’s causing that so you may need Thunkable Staff to take a look at your project.

---

<div class="post-metadata">

### Author: ![elias.villa.8320](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elias.villa.8320](https://community.thunkable.com/u/elias.villa.8320)
#### Post date: [June 3, 2024, 5:25am UTC](https://community.thunkable.com/t/checking-the-image-number-of-a-sprite-made-with-the-create-block-stops-count-from-continuing/3036099/5 "2024-06-03T05:25:58Z")

</div>

Yeah, it’s some tipe of bug with the “if” and “component” blocks, because tha game runs normally if in the conditions i choose the ball/paddle image numbers instead of the component
