tables
Tinoboss
Member Posts: 37
i made a table for a shop in my game, and im trying to get an actor that displays whats in the first colum and the first row in my table. this is what i have in the display text spot *balloon Shop *..tableCellValue(game.store, 1, 1) what am i sopposed to put there?
Comments
To display the first row and column, you would use tableCellValue(tableName, row, col). So if your table is called game.store then it would be tableCellValue(game.store,1,1). Be sure to select game.store from the attribute browser rather than typing it in.
To concatenate (join) text to the result, make sure the text is in quotes:
"balloon shop "..tableCellValue(game.store,1,1).
Are you using a Mac or PC?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
pc @tatiang
i took a screenshot but it will not let me put it here to show you @tatiang
It's best to post in the "Working with GS (PC)" sub forum then. I'll move this for you.
You can upload a screen shot to a file-sharing site and then embed or post the link here.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
I Just had a similar issue with my tables and I can tell you right now, it's the space just before your number ones. ..tableCellValue(game.store, 1, 1)
Delete them and your problems are over. Seems GS doesn't like spaces... who knew?
Thanks
Jim