I have a following array of hex numbers, that are different characters in the game.
gameState.charactersArray = [0xff5c33, 0x324563, 0x000000, 0xffffff, 0x003300];
And if I try to access a number that includes letters, so indeces 0 and 3, then the character simply isn't displayed (btw, I'm not getting any errors logged to the console). The hex numbers from that array composed only by numbers, so indeces 1, 2 and 4 work fine.
Also, if in the line:
gameState.character.setTint(gameState.charactersArray[gameState.characterIndex]);
I put any of the hex numbers with letters, for example 0xff5c33 instead of gameState.charactersArray[gameState.characterIndex] then it works fine too.
I just want to be able to set the character's color based on user's choice. Also gameState.characterIndex works fine, no issues there.