[Solved] Changing text based on an array and a variable

Before proceeding, please use the forum search feature at the top of the page to check if your question has already been answered.

How do I…

Hi I’m new to Gdevelop and looking for some help.

I’ve got a Season_change_GV that only shows numbers from 0-3 based on day count. I’ve set up an array and a text object.

I’m trying to get the text to display the season based on the number from the Season_Change_GV.

I don’t fully understand how calling arrays works so a bit stuck, appreciate any help or hints :slight_smile:

You can set the text of the text object to Season_GV[Season_Change_GV].

This will return the Season_GV array item at the index matching the value of Season_Change_GV

Thank you so much!
I tried this exact expression but used ( instead of [ …