Questions about display and random function

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?

Comments

  • SearleSamaSearleSama Member Posts: 108
    do

    tableCellValue (game.table1, random(1,15), random(1,2))
  • SearleSamaSearleSama Member Posts: 108
    or you can do

    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.
  • HackimHackim Member Posts: 2
    Thanks SearleSama
    it works very well
Sign In or Register to comment.