Display Text, Table Cell Value?
KillerPenguinStudios
Member Posts: 1,291
Hello GS community,
I have a table with 1 column and 10 rows. They are booleans all set to false. I have a button that when touch is pressed change column 1, row 1 to false. I want to display if its current state is true or false to make sure everything is working correctly. I select "Display Text" select tableCellValue and insert the table name, row, & col that I want it to display. When previewing it all it says is invalid expression and doesn't display if it is true or false. What am I doing wrong here and how to fix this? Thank you in advance!
I have a table with 1 column and 10 rows. They are booleans all set to false. I have a button that when touch is pressed change column 1, row 1 to false. I want to display if its current state is true or false to make sure everything is working correctly. I select "Display Text" select tableCellValue and insert the table name, row, & col that I want it to display. When previewing it all it says is invalid expression and doesn't display if it is true or false. What am I doing wrong here and how to fix this? Thank you in advance!
Comments
maybe if he made an attribute thats equal to the boolean value???
i believe booleans can also be written as 0 and 1
0=false
and
1=True
@killerpenguins
Strange you couldn't get it to work; one workaround is to put the table result into a text boolean and then display that:
Rule: When touch is pressed
Change Attribute TValue to tableCellValue(YourTable, 1,1)
Display Text: scene.TValue
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
"value "..game.boolean variable.
I sure that gave me an error last time.
If not then I stand corrected, it was a while back when I noticed it.
Need Help? Email Me | Templates | Full Game Source Code