Long button press error

Hi there, im trying to test a program that increase 1 when the button is pressed, and stops when button is not pressed, but the thing is when I started the program, somehow it automatically increased 1 while i didn't press anything. Can you guys help me please?
Here's a screenshot of the blocks:


may be this could help
you could allso add a text chnage to the buttons to say. on or off =)

1 Like

wait, where should i add the text change mate?

dont mind the red X only there as im usnig the same block twice

1 Like

it still doesnt work, somehow it still automatically increase the value at the beginning

whats your clock interval set to

about 100

i will test it soon. phones flat

1 Like

the thing is u somehow missunderstand me or i make you missunderstand :v , but the thing is when i hold the button, the value goes up, when i stop holding it, the value stops increasing, but the issue was at the beginning, some how it automatically increased the value while i didnt touch the button :v so please help me

testtimer.aia (2.3 KB)
this works via holding down
it clocks up

1 Like

it still increases at the beginning :confused:

you can

orr

2 Likes

omg thank you so much, it really works

so sorry lol i i should of read it over once again befor lol sorry.

injoy

1 Like

its ok, thank you one more time, u really are my savior :3

1 Like

In my view it is always best to control Clocks in Blocks - too easy to forget what you have in the Designer.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.