How to do +1 in a table
stefdelec
Member, PRO Posts: 146
Hi,
I just started to use gs, and I am "stuck". I have looked on the forum before, couldn't find my answer or I don't know how to phrase it.
Anyway, I would like to change the value of a cell each time I press a bouton. 1 touch => +1, then anotherpress=>+1 to the same cell. How could I do it?
Thanks,
Stephane.
I just started to use gs, and I am "stuck". I have looked on the forum before, couldn't find my answer or I don't know how to phrase it.
Anyway, I would like to change the value of a cell each time I press a bouton. 1 touch => +1, then anotherpress=>+1 to the same cell. How could I do it?
Thanks,
Stephane.
Comments
Need Help? Email Me | Templates | Full Game Source Code
However, I can t see where it is. I checked all the behavior (button) part, I can t see how you did it.
In your example "change table value" is empty. But it is working.
When touch is pressed change attribute (game.test-tb, 1, 1) to
tableCellValue(game.test-tb ,1,1)+1
(game.test-tb [Our Table], 1 [Row], 1 [Column])+1 [How much to increase row 1, column 1 by, in this case 1]
Edit: Odd that its empty. Here is a screenshot of the change table value
Need Help? Email Me | Templates | Full Game Source Code
Need Help? Email Me | Templates | Full Game Source Code