tableRowCount always returns 1
DrLuthor
Member Posts: 3
Hi,
I'm discovering GameSalad and I'm stuck on this issue.
I created a 22 row by 4 columns table named P1, filled with some text.
In the instance of a scene, I'd like to set a custom attribute tableLength with the value that tableRowCount(game.P1) should return, which is 22 in this case.
But the function tableRowCount(game.P1) always returns 1 (checked with the log debugger function)
Do you have any idea how to get the correct value ?
I'm discovering GameSalad and I'm stuck on this issue.
I created a 22 row by 4 columns table named P1, filled with some text.
In the instance of a scene, I'd like to set a custom attribute tableLength with the value that tableRowCount(game.P1) should return, which is 22 in this case.
But the function tableRowCount(game.P1) always returns 1 (checked with the log debugger function)
Do you have any idea how to get the correct value ?
Answers
https://www.dropbox.com/s/rfmog9vyi02ckdx/Capture d’écran 2012-05-08 à 19.22.39.png
When you use the Preview player, it works fine. But when you use the play/pause button in the builder, it always returns 1. I haven't use the preview player since the scene I was testing is not the 1st one.
Weird
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left