Displaying text from a table.
dalbelo
Member Posts: 6
I have a table labeled "TbTiaLines" with 2 Text columns and 10 rows. I am trying to get an actor to display the text from this table. I added a rule so that when touch is released it should display text from the specified cell "tableCellValue(game.TbTiaLines, 1, 1), but when I preview it all that displays is a "0". I have tried "tableCellValue(TbTiaLines, 1, 1), but I get the same result. Any assistance will be appreciated.
Dalbelo
Dalbelo
Best Answer
-
MotherHoose Posts: 2,456yes! we all have to remember that the computer does not use our names for assets/attributes
computers call/access items by their id#
thankfully, GameSalad tells the computer the correct id# from the selectionList of our naming
Awesome! that you figured this one out for yourself @dalbelo … that is real learning!
MH
Answers
With the Mac version, the table name would be TbTiaLines without the "game." prefix. Not sure about in Windows.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks for the suggestions.