Help With Tables?
jblb2424
Member Posts: 65
Hello
I have been desperately trying to make a star system through my game through tables, but i just cant seem to get it working properly. Basically, I have an attribute called "StarCounter" and every time a star is collected, the star counter increases by 1(There are 3 stars per level). Here is my code for the tables.
RULE:
When Game.StarCounter is > Than tableCellValue(Game.TbScores, WhatLevel ,1)...Change table value to:
Table:TB.Scores
Row: Self.WhatLevel
Column:1
Value: game.StarCounter
The TBscores is the table name for the code, and the WhatLevel attribute is just used to identify the level I am on.
What is happening in the game is that no matter how many stars I collect, the table value will go directly to 3 when i return to the level select. I know this because I am using a display actor using this code
Display Text: tableCellValue(Game.TbScores, WhatLevel, 1)
Can Anybody help me figure out what I am doing wrong? I have been trying to fix this for over 3 weeks with no luck. Thanks!
I have been desperately trying to make a star system through my game through tables, but i just cant seem to get it working properly. Basically, I have an attribute called "StarCounter" and every time a star is collected, the star counter increases by 1(There are 3 stars per level). Here is my code for the tables.
RULE:
When Game.StarCounter is > Than tableCellValue(Game.TbScores, WhatLevel ,1)...Change table value to:
Table:TB.Scores
Row: Self.WhatLevel
Column:1
Value: game.StarCounter
The TBscores is the table name for the code, and the WhatLevel attribute is just used to identify the level I am on.
What is happening in the game is that no matter how many stars I collect, the table value will go directly to 3 when i return to the level select. I know this because I am using a display actor using this code
Display Text: tableCellValue(Game.TbScores, WhatLevel, 1)
Can Anybody help me figure out what I am doing wrong? I have been trying to fix this for over 3 weeks with no luck. Thanks!
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Do this:
RULE:
When Game.StarCounter is > Than tableCellValue(Game.TbScores, WhatLevel ,1)...Change table value to:
Table:TB.Scores
Row: Self.WhatLevel
Column:1
Value: game.StarCounter
--Save Table: TB.Scores--
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
glad you found the error!