I'm just starting with C2 Free Edition, just prototyping and evaluating the software. So maybe my question is pretty naive.
I have a Layout representing a 3x3 keyboard. This layout loads many times in my proto, because there are keyboards of this kind in many layouts ("rooms"). Each key is a Sprite ("Button"), which has an instance variable called "value". When you press each button its value cycles from 0 to 2 and back to 0 (0, 1, 2, 0, 1, ...). Players can introduce visual codes in the keyboard this way.
I have another button ('enter') to validate the entered code and I want to store it in a global as a single string, return to the original Layout and decide what to do, depending on the code entered. My problem is that I don't know how to generate, for example, a concatenated string from the nine independent values from each button. I want to store a combination like "012210022", with row after row, for example.
It's like I need a "for-each" loop, but not as an event, but as an action, and I have no clue about how to do this.
Thanks a lot in advance.