IDs in Objects Variables?

Hi!
I’m trying to make a platform-type game that incorporates mini-games for speech therapy.
The idea is that a word is delivered, for example AIRPLANE, and it must be indicated how many syllables it has by hitting the corresponding box of coins.
So if you hit coinbox # 2 because AIR-PLANE, it will get a message saying something like "Okay, you can go ahead, otherwise it will say “try again”.
The problem is that I don’t know how I could put an ID or some logic to it for when the correct coinbox is selected or not.
I hope you understand what I am trying to do. I would appreciate any guidance on this.

This is how i set the coinbox events trying to do some logic for each Coinbox ID:

and this are the coinboxes
image

I’d use a object variable that holds the number of syllables the coinbox represents, and set that in editor, not the event script.

When the player clicks on the coinbox, check the value of that object variable matches the syllable count.

I hope I understood your question correctly.

2 Likes

Thanks for the answer. This is how i did it:

1 Like