how to highlight table values that are the same?

hi, i have a actor placed 20 times on my scene, each actor have a self.myrow integer attribute from 1 to 20, then each actor display the value from a table, so the self.myrow is the row from the table, so how do i mark actors that have same values? thanks

Comments

  • ArmellineArmelline Member, PRO Posts: 5,433
    edited October 22

    If I'm understanding you correctly, you want to identify which table rows have the same values in them (and therefore which actors will be displaying the same values? If so, here's a project that shows two ways to do that. One way simply goes "Does any other actor's "table value" match this ones? If yes, highlight this actor." The other is a bit more complicated and matches the matching actors specifically.

    If the actors themselves don't need to know, you can also achieve a similar effect with a "loop over table" in another, independent actor instead.

    ---

    Need help with GameSalad? Custom support, publishing, and game development services available at armelline.com!

  • artigiano1987artigiano1987 Member, PRO Posts: 17

    thanks armelline thats exactly what i need.

Sign In or Register to comment.