I’m working on a word game and I haven’t been able to figure out how to split a word like “BEST” Into individual characters like this “B” “E” “S” “T” and then display them in a tile like a scrabble piece. This is my first word-based game and I will appreciate any help.
I’m sorry if it seems too basic or might already have an answer somewhere here
String is just an array of chars, so you can iterate over it in a for loop and spawn a tile for each character. Something like this
for (int i = 0; i < str.Length; i++)
{
SpawnTile(str*);*
}