# How to Know the index of picture is showing on Sprite

**URL:** <https://community.thunkable.com/t/how-to-know-the-index-of-picture-is-showing-on-sprite/1290184>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [May 18, 2021, 3:46am UTC](https://community.thunkable.com/t/how-to-know-the-index-of-picture-is-showing-on-sprite/1290184 "2021-05-18T03:46:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minhduct4bjhb](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@minhduct4bjhb](https://community.thunkable.com/u/minhduct4bjhb)\
**Post date:** [May 18, 2021, 3:46am UTC](https://community.thunkable.com/t/how-to-know-the-index-of-picture-is-showing-on-sprite/1290184/1 "2021-05-18T03:46:05Z")

</div>

Hi all,  
I’m making a simple spaceship shooting game, some time when the laze(Sprite\_Shoot) collide with the asteroid I change the image of asteroid sprite to the random next picture in the picture list.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7d73a985dce742c8742097717ab7170c9260893.png)

Picture list of Asteroid sprite  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ec83be1c17c7255563575890d8c3fca754244b6d.png)

Now I need to know the index or name of the picture is showing on the Asteroid Sprite to make behavior when it collides with the laze again.  
How can I do that, thanks in advanced

---

<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:22pm UTC](https://community.thunkable.com/t/how-to-know-the-index-of-picture-is-showing-on-sprite/1290184/2 "2024-11-08T13:22:28Z")

</div>


