,question: memorizing mouse click / Queue and framedelay

Hi there!

I am beginner of vvvv.
Currently I am trying to make some game for practing of vvvv…

The game is like tonepad app…
https://itunes.apple.com/en/app/tonepad/id315980301?mt=8

But I am struggling of memorizing state of box clicked in matrix.

I tried frame delay and memorized date with queue but they kept adding because they are looping…

And I don’t know how to deselect box…

I am sorry my English is not good and very bad at explanation…

Please help me…

test_sound.v4p (131.8 kB)

ok, there are some basic misconceptions in your patch. the first one is that you did not use subpatches for each separate part of your logic. read here: subpatches#subpatches

also to playback a spread of sounds you should use the audio pack)-or-the-((contribution:vvvv.audio-pack-alpha).

and the ToggleButton (GUI) node from the addonpack will memorize its state automatically, no need for framedelay or any other complex logic.

hope that helps.

Thank you very much, tonflim.
ToggleButton(GUI) was waht I was looking for!!

I didn’t know about subpatches…
Definitely, I need them…

I will make it again! Thank you!

your welcome, good luck!