# How do I make a second press of the A button make a second string of text come from 'my sprite'?

**URL:** <https://forum.makecode.com/t/how-do-i-make-a-second-press-of-the-a-button-make-a-second-string-of-text-come-from-my-sprite/27900>\
**Category:** Help\
**Created:** [March 23, 2024, 12:13am UTC](https://forum.makecode.com/t/how-do-i-make-a-second-press-of-the-a-button-make-a-second-string-of-text-come-from-my-sprite/27900 "2024-03-23T00:13:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grrrth\_TD](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/grrrth_td/32/14247_2.png) [@Grrrth\_TD](https://forum.makecode.com/u/Grrrth_TD)\
**Post date:** [March 23, 2024, 12:13am UTC](https://forum.makecode.com/t/how-do-i-make-a-second-press-of-the-a-button-make-a-second-string-of-text-come-from-my-sprite/27900/1 "2024-03-23T00:13:01Z")

</div>

I am making a joke card in one of the tutorial and it shows me how to make my sprite say something when the A button is pressed. I want the punchline to also be said by my sprite when the A button is pressed a second time.

How do I make this happen?

Thanks!

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [March 23, 2024, 5:13pm UTC](https://forum.makecode.com/t/how-do-i-make-a-second-press-of-the-a-button-make-a-second-string-of-text-come-from-my-sprite/27900/2 "2024-03-23T17:13:09Z")

</div>

make a new variable call it ‘i’ if you want (for index) and set it to 0  
end put your two strings in a array  
then when the A button is pressed then make the sprite say the string in the array at the index i  
and after that you modify i by 1  
[here](https://makecode.com/_LRfTHe4wLeJ8) is an example
