Displaying Random Mathematical Symbols with Tables

ADSentertainmentADSentertainment Member Posts: 397
edited June 2013 in Working with GS (Mac)
I'm trying to make it so an object will display a random mathematical symbol using values on a table, but each time I do it, it shows as "0". Could it be perhaps that it thinks I'm trying to do a mathematical equation instead of simply just displaying something like a +? I did try to have it just display a + but it said invalid expression instead of a "0" unless I put it in quotations. Here's my code:
tableCellValue( game.TB Math Symbols , self.RandomSymbol ,1)
self.RandomSymbol=random(1,game.TB Math Symbols) (It has 14 rows, I have this in case I add an extra row so I don't have to modify this code)
Here's a screenshot of my table:
photo ScreenShot2013-06-03at62948PM_zpsc986944c.png

EDIT: Nevermind, my code was correct! for some reason, it just doesn't show on the quick preview, it shows on the main preview.

Having trouble with your game? Sounds like a personal problem.

Sign In or Register to comment.