Quick question about tables

ashtmjashtmj Member, PRO Posts: 405
edited February 2012 in Working with GS (Mac)
I'm using table cell value and I was wondering if I can add another attribute for selecting the row # rather then actually entering a number?
like so: tableCellValue(table=mytable,row=my attribute,col=5)
so i can switch the attribute to change what row the actor is using.
I tried a real attribute and a index and they didn't seem to work...does anyone know if this is possible and I'm just doing something wrong

Comments

  • GLGAMESGLGAMES SingaporeMember Posts: 988
    of course you can, you can declare the row and col by using integer attribute .
    I used this method for my game
    https://market.android.com/details?id=com.glgames.limhdlite&feature=search_result
    The only downside is the table itself could not be declared using text attribute so there's no way to switch table instantly on the same rule.
  • ashtmjashtmj Member, PRO Posts: 405
    Ah-ha! I assumed integer wouldn't work cause it can be a negative...also for what I'm doing I needed a timer that runs to completion.
    now it works! and saves so many hours of typing numbers! :)
    Thanks
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    As my game have 71 stages, i used the stage integer as the row identifier so it will show the corresponding row data of that stage whenever i proceed on to the next.
Sign In or Register to comment.