Create a long list with same actor but different text
Hi
If I have a table looking like the one in the picture. Every row will save the scores from a game in a column for each player. Then I have a scene where you can watch the result from previous games.
I have an int attribute called ScoreRow that raises by one after every game and saves the points in the table.
I want to create the same amount of actors that ScoreRow is. After about 100 games it will be a lot of actors if I have to do it manually, if it's possible to do it automatic in some way?
All actors should link to same scene but if I press "Game 1" the text in the result scene will display result from row 1 and if I press "Game 3" the text in the result scene will display result from row 3.
https://imgur.com/8QTaDtN
https://imgur.com/ro2HvKt
I hope someone understad and can help me.
Comments
You actually don't need to use separate actors for this. Depending on how many rows you need to display at one time, a Display Text with tableMergeValues to merge the columns with a separator (e.g. " ") will display everything you need.
Here's another way to do it (demo attached). You don't even need the first column of your table if you use an attribute for the game number.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User