Questions about display and random function
Hackim
Member Posts: 2
Hello, I m new to gamesalad and sorry for my bad english...
here is my problem.
I have a table with many rows and many columns.
I made sure that an actor displays the contents of the colone number 1 corresponding to a row randomly selected with this function: "tableCellValue (game.table1, random (1,15), 1)"
It works.
Now I want that an object displays the contents of the column 2 of the line selected by the "random" function.
Do you think this is possible?
here is my problem.
I have a table with many rows and many columns.
I made sure that an actor displays the contents of the colone number 1 corresponding to a row randomly selected with this function: "tableCellValue (game.table1, random (1,15), 1)"
It works.
Now I want that an object displays the contents of the column 2 of the line selected by the "random" function.
Do you think this is possible?
Comments
tableCellValue (game.table1, random(1,15), random(1,2))
change attribute self.selectedcolumn random(1,2)
display tablecellvalue(game.table1, random(1,15), self.selectedcolumn)
you'll have to make the self attribute first of course.
it works very well