commas in the text display....? integer

Ok so...I did search the forums...I find a couple of thread where peeps wanted to add a comma to an integer...as I do....

1,000 not 1000. Under the game level attribute I created an integer...called Cash....I set it to 1,000...it even adds a comma...like it SHOULD. in game of course it does not. I have no idea why....I need to add some gigantic logic to my game to do this one little thingy? I saw a thread that said to put this in there....

"Score: "..floor(( self.score %100000000)/(10000000))..floor(( self.score %10000000)/(1000000))..","..floor(( self.score %1000000)/(100000))..floor(( self.score %100000)/(10000))..floor(( self.score %10000)/(1000))..",".. floor(( self.score %1000)/(100)).. floor(( self.score %100)/(10)).. floor(( self.score %10)/(1))

PLease...lol....tell me what the heck this is and why I can't make my game.cash get inserted in it.

any help would be greatly appreciated.

I also saw the @braydon_sfx comment to figure out where a comma should go in my game and insert them...A friend said the same...problem is...my display is center display...the number changes frequently from the center out...

Sign In or Register to comment.