Hello, I am a new user who has been using gdevelop for less than a month.
I’m making a Pokémon-like game. I made some arrays to store those characters’ data, such as attack and defense.At the same time, I created a sprite on the screen with a different character in each frame.
I want to read the number of picture frames in the array through the ID of different characters, so that the character can be displayed on the screen.
I’ve tried using variables to read the children of the array, for example
VariableString(flagship) = “musume”+ Tostring(Variable(flagship))+“”
frame numble = GlobalVariable(VariableString(flagship))
but it doesn’t work.
Now I try to use variables to replace the numbers in brackets in the array, but it doesn’t work too.
I can only come here to ask how to solve it.
Sorry, English is not my first language, it may be difficult for you to understand what I am saying, I will put my code below.