Sum of points when clicking

I would like to create a counter that when you press the a button, add 5 points to the score, when you press the b button, add 3 points and when you press the 3 button, add 1 point. It’s possible?

It’s easy. You need to use Arithmetic action with Number widget:


Check the example arithmetic.pma (6.0 KB)

1 Like

that’s exactly what i wanted, wow, great.

is it possible to save the result every time the button is pressed or with some additional button? in txt?

Here is how to save score number to text file:


The file is created in the documents folder.

See the example arithmetic_save.pma (6.2 KB)

1 Like

Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.