# Won't next on first try

**URL:** <https://community.thunkable.com/t/wont-next-on-first-try/3145363>\
**Category:** Questions about Thunkable X\
**Created:** [August 17, 2024, 5:43pm UTC](https://community.thunkable.com/t/wont-next-on-first-try/3145363 "2024-08-17T17:43:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmyizi101q1s](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emmyizi101q1s/32/175278_2.png) [@emmyizi101q1s](https://community.thunkable.com/u/emmyizi101q1s)\
**Post date:** [August 17, 2024, 5:43pm UTC](https://community.thunkable.com/t/wont-next-on-first-try/3145363/1 "2024-08-17T17:43:11Z")

</div>

![help](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/e/7e77d3a7348374c5a2891e5ee01ae69cca0483b4.png)  
The block works. But I have to click twice on the first try for the image to change to the next one

---

<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 17, 2024, 7:28pm UTC](https://community.thunkable.com/t/wont-next-on-first-try/3145363/2 "2024-08-17T19:28:39Z")

</div>

Those blocks should work. Can you post a link to your project?

**Edit:** you’re starting with the index at 0 so when the user clicks the button, it changes to 1. But the default image for the skin is index 1 (skin1.png). So it just looks the same whether the index is 0 or 1. Then when you click again, index is 2 (skin2.png) and the skin looks different.

**You need to initialize index to 1.**

---

<div class="post-metadata">

**Author:** ![emmyizi101q1s](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/emmyizi101q1s/32/175278_2.png) [@emmyizi101q1s](https://community.thunkable.com/u/emmyizi101q1s)\
**Post date:** [August 17, 2024, 8:44pm UTC](https://community.thunkable.com/t/wont-next-on-first-try/3145363/3 "2024-08-17T20:44:23Z")

</div>

I already tried that and it’s still the same thing

---

<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 18, 2024, 4:33am UTC](https://community.thunkable.com/t/wont-next-on-first-try/3145363/4 "2024-08-18T04:33:12Z")

</div>

This is really strange. When I set up these blocks to check the value of the index variable, the screen shows 0 when the screen opens. It should show 1.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b84dd8cd0f4fff979d2002ed20f2970036edcfc.png)

By the way, I recommend using different naming conventions. For example, skinIndex or skin\_Index instead of index; hairIndex instead of index1; etc.

**Edit:** This works:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/6/b69d7e5039d1e0ae59b208f609691522018ecf08.png)

---

<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:** [November 16, 2024, 4:33am UTC](https://community.thunkable.com/t/wont-next-on-first-try/3145363/5 "2024-11-16T04:33:22Z")

</div>

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